]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: bgp support for netns
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 20 Dec 2017 11:37:18 +0000 (12:37 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit61cf4b371572363106c489b6f716b2b111d68ef9
treec96d51392ae6e507aaed8d8dcb2469045ef888a4
parent2e0d2b3d9c4f2681d00ec2607319f3bb8078e31d
bgpd: bgp support for netns

The change contained in this commit does the following:
- discovery of vrf id from zebra daemon, and adaptation of bgp contexts
  with BGP.
  The list of network addresses contain a reference to the bgp context
  supporting the vrf.
  The bgp context contains a vrf pointer that gives information about
  the netns path in case the vrf is a netns path.

Only some contexts are impacted, namely socket creation, and retrieval
of local IP settings. ( this requires vrf identifier).

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_fsm.c
bgpd/bgp_main.c
bgpd/bgp_network.c
bgpd/bgp_network.h
bgpd/bgpd.c