diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:40:07 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-24 21:53:25 +0200 |
commit | 12d0cdf69ba15dccb705e212ea605b692f825dbd (patch) | |
tree | e871010d64336f6494ef7f1deb372862b11b342c /src/conf_mode/interface-bonding.py | |
parent | 8138766884bb7fe301dc21d2cb0bd3556d169d2e (diff) | |
download | vyos-1x-12d0cdf69ba15dccb705e212ea605b692f825dbd.tar.gz vyos-1x-12d0cdf69ba15dccb705e212ea605b692f825dbd.zip |
Python/ifconfig: T1557: refactor Interface 'ifalias' property to set_alias()
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-x | src/conf_mode/interface-bonding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py index dce4a8106..8b4c8b625 100755 --- a/src/conf_mode/interface-bonding.py +++ b/src/conf_mode/interface-bonding.py @@ -84,7 +84,7 @@ def apply_vlan_config(vlan, config): raise TypeError() # update interface description used e.g. within SNMP - vlan.ifalias = config['description'] + vlan.set_alias(config['description']) # ignore link state changes vlan.set_link_detect(config['disable_link_detect']) # Maximum Transmission Unit (MTU) @@ -369,7 +369,7 @@ def apply(bond): b.arp_ip_target = '+' + addr # update interface description used e.g. within SNMP - b.ifalias = bond['description'] + b.set_alias(bond['description']) # # missing DHCP/DHCPv6 options go here |