#endif
FRR_CFG_DEFAULT_BOOL(BGP_IMPORT_CHECK,
- { .val_bool = true, .match_profile = "datacenter", },
- { .val_bool = false },
+ {
+ .val_bool = false,
+ .match_profile = "traditional",
+ .match_version = "< 7.4",
+ },
+ { .val_bool = true },
)
FRR_CFG_DEFAULT_BOOL(BGP_SHOW_HOSTNAME,
{ .val_bool = true, .match_profile = "datacenter", },
bgp router-id 192.168.0.1
bgp log-neighbor-changes
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.7.10 remote-as 100
neighbor 192.168.7.20 remote-as 200
neighbor fc00:0:0:8::1000 remote-as 100
route-map LIES deny 10
match interface notpresent
-!
\ No newline at end of file
+!
router bgp 101
bgp router-id 10.254.254.1
no bgp ebgp-requires-policy
+ no bgp network import-check
timers bgp 8 24
bgp graceful-restart
neighbor 2001:db8:4::1 remote-as 102
router bgp 102
bgp router-id 10.254.254.3
no bgp ebgp-requires-policy
+ no bgp network import-check
timers bgp 20 60
bgp graceful-restart
! simulate NSF machine
router bgp 101
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.0.2 remote-as 102
neighbor 192.168.0.2 bfd
address-family ipv4 unicast
router bgp 102
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.0.1 remote-as 101
neighbor 192.168.0.1 bfd
neighbor 192.168.1.1 remote-as 103
router bgp 103
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.1.2 remote-as 102
neighbor 192.168.1.2 bfd
address-family ipv4 unicast
router bgp 104
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.2.2 remote-as 102
neighbor 192.168.2.2 bfd
address-family ipv4 unicast
router bgp 101 vrf r1-cust1
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.0.2 remote-as 102
! neighbor 192.168.0.2 ebgp-multihop 10
neighbor 192.168.0.2 bfd
router bgp 102 vrf r2-cust1
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.0.1 remote-as 101
neighbor 192.168.0.1 bfd
neighbor 192.168.1.1 remote-as 103
router bgp 103 vrf r3-cust1
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.1.2 remote-as 102
neighbor 192.168.1.2 bfd
address-family ipv4 unicast
router bgp 104 vrf r4-cust1
no bgp ebgp-requires-policy
+ no bgp network import-check
neighbor 192.168.2.2 remote-as 102
neighbor 192.168.2.2 bfd
address-family ipv4 unicast
log monitor notifications
log commands
router bgp 5226
+ no bgp network import-check
bgp router-id 99.0.0.1
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5226
log monitor notifications
log commands
router bgp 5226
+ no bgp network import-check
bgp router-id 99.0.0.2
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5226
log monitor notifications
log commands
router bgp 5226
+ no bgp network import-check
bgp router-id 99.0.0.3
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5226
log file bgpd.log
router bgp 5227
+ no bgp network import-check
bgp router-id 99.0.0.1
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
log file bgpd.log
router bgp 5227
+ no bgp network import-check
bgp router-id 99.0.0.2
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
log file bgpd.log
router bgp 5227
+ no bgp network import-check
bgp router-id 99.0.0.3
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
log file bgpd.log
router bgp 5228 vrf ce4-cust2
+ no bgp network import-check
bgp router-id 99.0.0.4
no bgp ebgp-requires-policy
neighbor 192.168.2.1 remote-as 5228
if router_id:
config_data.append("bgp router-id {}".format(router_id))
+ config_data.append("no bgp network import-check")
return config_data