From cc5fdd0bbc9553fffdd3296b4b427c8b5c4f31f0 Mon Sep 17 00:00:00 2001 From: Date Huang Date: Sun, 20 Jun 2021 04:14:53 +0800 Subject: vrf: T3637: bind-to-all didn't work properly because of typo change from `bind_to_all` to `bind-to-all` refer: interface-definitions/vrf.xml.in (cherry picked from commit 8a78c790c1239eef533c7bbe12911aaeec4dc90f) --- src/conf_mode/vrf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index 6c6e219a5..897b093cc 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -138,7 +138,7 @@ def apply(vrf): # set the default VRF global behaviour bind_all = '0' - if 'bind_to_all' in vrf: + if 'bind-to-all' in vrf: bind_all = '1' _cmd(f'sysctl -wq net.ipv4.tcp_l3mdev_accept={bind_all}') _cmd(f'sysctl -wq net.ipv4.udp_l3mdev_accept={bind_all}') -- cgit v1.2.3