Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use route-maps instead of network for BGP prefixes #114

Draft
wants to merge 2 commits into
base: stable/yoga-m3
Choose a base branch
from

Conversation

sebageek
Copy link
Collaborator

The current firmware of our Cisco routers (<= 17.6) requires a full sync every time we touch the bgp subtree via netconf-yang. For our current prod regions can cause a complete config lock of the /native tree, which can take up to two minutes. In this timeframe no other reconfiguration is possible.

Before this commit we used network statements for advertising BGPVPNs and DAPNets. This is now done via "redistribute connected" and "redistribute static" + a route-map, to set the right communities for extraroutes overlapping with a DAPNet. The config will still get locked for DAPNet routers or when a BGPVPN is attached, but all subsequent modifications (like adding/deleting a subnet or adding/deleting an extraroute to the router) will only change a prefixlist and therefore not touch the BGP config tree.

Long term it would be desirable if Cisco would fix their confd implementation, though.

WIP:

  • config is still hardcoded, shouldn't be that way
  • we have to discuss if we want to advertise DAPNets via route-map or network statement

The current firmware of our Cisco routers (<= 17.6) requires a full sync
every time we touch the bgp subtree via netconf-yang. For our current
prod regions can cause a complete config lock of the /native tree, which
can take up to two minutes. In this timeframe no other reconfiguration
is possible.

Before this commit we used network statements for advertising BGPVPNs
and DAPNets. This is now done via "redistribute connected" and
"redistribute static" + a route-map, to set the right communities for
extraroutes overlapping with a DAPNet. The config will still get locked
for DAPNet routers or when a BGPVPN is attached, but all subsequent
modifications (like adding/deleting a subnet or adding/deleting an
extraroute to the router) will only change a prefixlist and therefore
not touch the BGP config tree.

Long term it would be desirable if Cisco would fix their confd
implementation, though.

WIP:
 * config is still hardcoded, shouldn't be that way
 * we have to discuss if we want to advertise DAPNets via route-map or
   network statement
We now also advertise DAPNets via route-map.

WIP: Commit will most likely be squashed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant