]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_mplsvpn.c
bgpd: vpn null check
authorpaco <paco@voltanet.io>
Mon, 18 Jun 2018 13:52:57 +0000 (15:52 +0200)
committerpaco <paco@voltanet.io>
Mon, 18 Jun 2018 13:52:57 +0000 (15:52 +0200)
commit73aed5841a1fe31e8a1f251dfcf87e1f2b1f2463
tree7f649c7db93ab41f332d58377ff21907dd5ae5ec
parent6389e663e9b8971d5afa75d6afa18f5152c6de1b
bgpd: vpn null check

Can be reproduced with following vtysh sequence (an intentionaly wrong
sequence):

['configure terminal\n router bgp 255 vrf l3vrf-6\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\nbgp router-id 10.255.255.1\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nlabel vpn export 45000\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrd vpn export 255:5\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute isis\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute ospf\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute connected\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nimport vpn\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nexport vpn\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrt vpn import 255:1\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrt vpn export 255:1\n'
]

Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_mplsvpn.c