summaryrefslogtreecommitdiff
path: root/tools/render_md.py
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-19 17:19:13 -0200
committerRenato Westphal <renato@opensourcerouting.org>2019-02-19 09:42:47 -0300
commitbf9c4483dea7247939e4923ac444f10f7fd93df9 (patch)
treecc7843a1088c313cfec67dca6948918974508d05 /tools/render_md.py
parentc2de8b21929abc788039114af958b57a7acd07b5 (diff)
zebra, lib: send VRF backend to the client daemons
Add a new field in the ZEBRA_CAPABILITIES zapi message specifying the VRF backend in use. For simplicity, make the zclient code call vrf_configure_backend() to apply the received value automatically instead of requiring the daemons to do that themselves in their zebra_capabilities() callbacks. Additionally, call zebra_vrf_update_all() only after sending the capabilities message to the client, so that it will know which VRF backend is in use when processing the VRF messages. This commit fixes a couple of bugs in the "interface" CLI command and associated northbound callbacks, which behave differently depending on the VRF backend in use. Before this commit, the vrf_backend variable would always be set to VRF_BACKEND_NETNS in the client daemons, even when zebra was started without the --vrfwnetns option. This could lead to inconsistent behavior and subtle bugs under specific circumstances. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tools/render_md.py')
0 files changed, 0 insertions, 0 deletions