diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:04:17 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:10:48 +0200 |
commit | d77f68ef3198cff019e1e2d74dfe2290800a1ea6 (patch) | |
tree | da3be3377968d9f4c242c0dfb5aa2421ecf7fbc8 /src/conf_mode/interface-bonding.py | |
parent | 6b828200e698dbff5a3ee61a0c6c9906b0a8493f (diff) | |
download | vyos-1x-d77f68ef3198cff019e1e2d74dfe2290800a1ea6.tar.gz vyos-1x-d77f68ef3198cff019e1e2d74dfe2290800a1ea6.zip |
Python/ifconfig: T1557: refactor 'mtu' property to get_mtu()/set_mtu()
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-x | src/conf_mode/interface-bonding.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py index 9049913e6..4a91619f1 100755 --- a/src/conf_mode/interface-bonding.py +++ b/src/conf_mode/interface-bonding.py @@ -13,8 +13,6 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# import os @@ -90,7 +88,7 @@ def apply_vlan_config(vlan, config): # ignore link state changes vlan.link_detect = config['disable_link_detect'] # Maximum Transmission Unit (MTU) - vlan.mtu = config['mtu'] + vlan.set_mtu(config['mtu']) # Change VLAN interface MAC address if config['mac']: vlan.mac = config['mac'] @@ -395,7 +393,7 @@ def apply(bond): # Bonding policy b.mode = bond['mode'] # Maximum Transmission Unit (MTU) - b.mtu = bond['mtu'] + b.set_mtu(bond['mtu']) # Primary device interface if bond['primary']: |