diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-05-02 22:53:38 +0200 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2016-05-02 22:53:38 +0200 |
commit | 4a04e5f7968d46e446bdb530724da18b90b7f5f8 (patch) | |
tree | 2fe905811f344992b24d54fc6a81d4ec6ef40567 /zebra/interface.h | |
parent | lib: VRF_GET_ID should respect VRF_UNKNOWN (diff) | |
download | frr-4a04e5f7968d46e446bdb530724da18b90b7f5f8.tar.xz frr-4a04e5f7968d46e446bdb530724da18b90b7f5f8.zip |
BGP: Trigger IPv6 router advertisements upon config of unnumbered neighbor
Instead of turning on IPv6 RA on every interface as soon as it has an IPv6
address, only enable it upon configuration of BGP neighbor. When the BGP
neighbor is deleted, signal that RAs can be turned off.
To support this, introduce new message interaction between BGP and Zebra.
Also, take appropriate actions in BGP upon interface add/del since the
unnumbered neighbor could exist prior to interface creation etc.
Only unnumbered IPv6 neighbors require RA, the /30 or /31 based neighbors
don't. However, to keep the interaction simple and not have to deal with
too many dynamic conditions (e.g., address deletes or neighbor change to/from
'v6only'), RAs on the interface are triggered upon any unnumbered neighbor
configuration.
BGP-triggered RAs will cause RAs to be initiated on the interface; however,
if BGP asks that RAs be stopped (upon delete of unnumbered neighbor), RAs
will continue to be exchanged if the operator has explicitly enabled.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-10640
Reviewed By: CCR-4589
Testing Done: Various manual and automated (refer to defect)
Diffstat (limited to 'zebra/interface.h')
-rw-r--r-- | zebra/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 2e88566e1..3784253e6 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -172,6 +172,7 @@ struct rtadvconf #define RTADV_PREF_MEDIUM 0x0 /* Per RFC4191. */ u_char inFastRexmit; /* True if we're rexmits faster than usual */ + u_char configured; /* Has operator configured RA? */ int NumFastReXmitsRemain; /* Loaded first with number of fast rexmits to do */ #define RTADV_FAST_REXMIT_PERIOD 1 /* 1 sec */ |