summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-bonding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-21 09:53:35 +0200
committerGitHub <noreply@github.com>2019-09-21 09:53:35 +0200
commitf6838cb7a625dfb78af50357492a3569eba1e235 (patch)
tree3af230de22ec72e4db0e68fe8c5be0583ef2cb10 /src/conf_mode/interface-bonding.py
parentdb43a81c06d1fc8c06c4e5bae753a8854bf00d2c (diff)
parentb27482c0201a433762168abe2d369ea43a599f1c (diff)
downloadvyos-1x-f6838cb7a625dfb78af50357492a3569eba1e235.tar.gz
vyos-1x-f6838cb7a625dfb78af50357492a3569eba1e235.zip
Merge pull request #134 from c-po/t1637-ethernet
T1637 - Rewrite ethernet interface in new style XML syntax
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-xsrc/conf_mode/interface-bonding.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py
index ac3e1b867..9049913e6 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -22,7 +22,7 @@ from copy import deepcopy
from sys import exit
from netifaces import interfaces
-from vyos.ifconfig import BondIf, EthernetIf
+from vyos.ifconfig import BondIf, VLANIf
from vyos.configdict import list_diff, vlan_to_dict
from vyos.config import Config
from vyos import ConfigError
@@ -82,7 +82,7 @@ def apply_vlan_config(vlan, config):
to a VLAN interface
"""
- if type(vlan) != type(EthernetIf("lo")):
+ if type(vlan) != type(VLANIf("lo")):
raise TypeError()
# update interface description used e.g. within SNMP
@@ -334,8 +334,7 @@ def apply(bond):
b = BondIf(bond['intf'])
if bond['deleted']:
- #
- # delete bonding interface
+ # delete interface
b.remove()
else:
# Some parameters can not be changed when the bond is up.