diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:53:05 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-24 21:53:25 +0200 |
commit | 48e5ad611bc63575eb1150024939d04eb62cf400 (patch) | |
tree | 2102bb376e06206c08b21a1d23610ded52224b16 /src | |
parent | 3cedc3358c6aeb9e6caad4251958fa1a05723ea3 (diff) | |
download | vyos-1x-48e5ad611bc63575eb1150024939d04eb62cf400.tar.gz vyos-1x-48e5ad611bc63575eb1150024939d04eb62cf400.zip |
Python/ifconfig: T1557: refactor Interface 'proxy_arp_pvlan' property to set_proxy_arp_pvlan()
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interface-bonding.py | 2 | ||||
-rwxr-xr-x | src/conf_mode/interface-ethernet.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py index 2058a3342..0b6ac14a6 100755 --- a/src/conf_mode/interface-bonding.py +++ b/src/conf_mode/interface-bonding.py @@ -384,7 +384,7 @@ def apply(bond): # Enable proxy-arp on this interface 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'] + b.set_proxy_arp_pvlan(bond['ip_proxy_arp_pvlan']) # Change interface MAC address if bond['mac']: diff --git a/src/conf_mode/interface-ethernet.py b/src/conf_mode/interface-ethernet.py index e15e89232..02a45408f 100755 --- a/src/conf_mode/interface-ethernet.py +++ b/src/conf_mode/interface-ethernet.py @@ -286,7 +286,7 @@ def apply(eth): # Enable proxy-arp on this interface 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'] + e.set_proxy_arp_pvlan(eth['ip_proxy_arp_pvlan']) # Change interface MAC address - re-set to real hardware address (hw-id) # if custom mac is removed |