diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-01-19 17:19:13 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-01-19 22:49:11 -0200 |
| commit | 81bd033cbb535281388616f9beb99c6882ae67c8 (patch) | |
| tree | a559c78e70933980e4cf248a255a653855b4159c /zebra/zebra_mpls_netlink.c | |
| parent | bb6b7f79bede8d849de4517de0f4b1b510871565 (diff) | |
lib: remove the vrf_is_mapped_on_netns() function
Now that all daemons receive the VRF backend from zebra, we can get
rid of vrf_is_mapped_on_netns() in favor of using the more convenient
vrf_is_backend_netns() function, which doesn't require any argument.
This commit also fixes the following problem:
debian(config)# ip route 50.0.0.0/8 blackhole vrf FAKE table 2
% table param only available when running on netns-based vrfs
Even when zebra was started with the --vrfwnetns, the error
above would be displayed since the VRF FAKE didn't exist, which
would make vrf_is_mapped_on_netns() return 0 incorrectly. Using
vrf_is_backend_netns() this problem doesn't happen anymore.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_mpls_netlink.c')
0 files changed, 0 insertions, 0 deletions
