diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:51:03 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-24 21:53:25 +0200 |
commit | 3cedc3358c6aeb9e6caad4251958fa1a05723ea3 (patch) | |
tree | ec202f63d1255f06f98810f72617cfd6c4f4b5a1 /src | |
parent | 3e108025a16a6d4db1bc08ea9161709b13295dfb (diff) | |
download | vyos-1x-3cedc3358c6aeb9e6caad4251958fa1a05723ea3.tar.gz vyos-1x-3cedc3358c6aeb9e6caad4251958fa1a05723ea3.zip |
Python/ifconfig: T1557: refactor Interface 'proxy_arp' property to set_proxy_arp()
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interface-bonding.py | 2 | ||||
-rwxr-xr-x | src/conf_mode/interface-ethernet.py | 2 | ||||
-rwxr-xr-x | src/conf_mode/interface-vxlan.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py index 8b4c8b625..2058a3342 100755 --- a/src/conf_mode/interface-bonding.py +++ b/src/conf_mode/interface-bonding.py @@ -382,7 +382,7 @@ def apply(bond): # configure ARP cache timeout in milliseconds b.arp_cache_tmp = bond['ip_arp_cache_tmo'] # Enable proxy-arp on this interface - b.proxy_arp = bond['ip_proxy_arp'] + b.set_proxy_arp(bond['ip_proxy_arp']) # Enable private VLAN proxy ARP on this interface b.proxy_arp_pvlan = bond['ip_proxy_arp_pvlan'] diff --git a/src/conf_mode/interface-ethernet.py b/src/conf_mode/interface-ethernet.py index 5c8c76827..e15e89232 100755 --- a/src/conf_mode/interface-ethernet.py +++ b/src/conf_mode/interface-ethernet.py @@ -284,7 +284,7 @@ def apply(eth): # configure ARP cache timeout in milliseconds e.arp_cache_tmo = eth['ip_arp_cache_tmo'] # Enable proxy-arp on this interface - e.proxy_arp = eth['ip_proxy_arp'] + e.set_proxy_arp(eth['ip_proxy_arp']) # Enable private VLAN proxy ARP on this interface e.proxy_arp_pvlan = eth['ip_proxy_arp_pvlan'] diff --git a/src/conf_mode/interface-vxlan.py b/src/conf_mode/interface-vxlan.py index 638efda31..b7aa55b61 100755 --- a/src/conf_mode/interface-vxlan.py +++ b/src/conf_mode/interface-vxlan.py @@ -170,7 +170,7 @@ def apply(vxlan): # configure ARP cache timeout in milliseconds v.arp_cache_tmp = vxlan['ip_arp_cache_tmo'] # Enable proxy-arp on this interface - v.proxy_arp = vxlan['ip_proxy_arp'] + v.set_proxy_arp(vxlan['ip_proxy_arp']) # Configure interface address(es) - no need to implicitly delete the # old addresses as they have already been removed by deleting the |