diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2016-03-24 15:40:50 +0000 |
|---|---|---|
| committer | Don Slice <dslice@cumulusnetworks.com> | 2016-03-25 11:51:35 +0000 |
| commit | 99ffac1827958ec43bf39e6d5d106ba58beb1c5e (patch) | |
| tree | 401fa3f31f9258df44b24691116936269b96be88 /zebra/interface.c | |
| parent | ca46a78e872a8a991e7dc262d44c6e68860cf127 (diff) | |
zebra: add or delete router-id when interface moves vrfs
When an interface changes which vrf it is part of, it needs to be added
to the list of possible router-id choices in the new vrf and removed
from the old vrf/default.
Ticket: CM-9074
Signed-off-by: Don Slice
Reviewed-by: Vivek Venkatraman
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 0ea06d6f5a..38fe6988eb 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -498,6 +498,7 @@ if_install_connected (struct interface *ifp) for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc)) { p = ifc->address; + zebra_interface_address_add_update (ifp, ifc); if (p->family == AF_INET) connected_up_ipv4 (ifp, ifc); @@ -521,6 +522,7 @@ if_uninstall_connected (struct interface *ifp) for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc)) { p = ifc->address; + zebra_interface_address_delete_update (ifp, ifc); if (p->family == AF_INET) connected_down_ipv4 (ifp, ifc); |
