BGP over MPLS APIs
Action |
Method |
Payload Required |
API |
---|---|---|---|
Add subnet to routes announced in address-family |
POST |
Yes |
/api/config/router/bgp/<as_number>/address-family/network |
Activate neighbor within address-family to announce routes specified |
POST |
Yes |
/api/config/router/bgp/<as_number>/address-family/neighbor |
Retrieve BGP status information |
GET |
No |
/api/operational/bgp/<protocol>,<routing-scheme>/ |
Example for BGP payload
<router:bgp>
<as>200</as>
<address-family>
<protocol>ipv4</protocol>
<routing-scheme>unicast</routing-scheme>
<network>
<network>10.20.0.0</network>
<mask>255.255.255.0</mask>
</network>
<neighbor>
<remote-ip>90.90.90.1</remote-ip>
<activate />
</neighbor>
</address-family>
<neighbor>
<remote-ip>90.90.90.1</remote-ip>
<remote-as>65000</remote-as>
<description>This is the CSR Headend</description>
</neighbor>
</router:bgp>