diff options
| author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-02-20 15:08:23 +0000 |
|---|---|---|
| committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-02-24 16:40:24 +0000 |
| commit | 10461c87c6f58c7f5b63d4053b8f00d65213bda3 (patch) | |
| tree | 26ff8ad3512fcff2c3f75c0561e6513ce61454ab /python/vyos/ifconfig_vlan.py | |
| parent | 373fcb829e95b52c6edd5fafd087012988d66c07 (diff) | |
| download | veeos-1x-10461c87c6f58c7f5b63d4053b8f00d65213bda3.tar.gz veeos-1x-10461c87c6f58c7f5b63d4053b8f00d65213bda3.zip | |
ifconfig: T2057: generalised Interface configuration
Provides a way to pass options to interface consistent between
subclasses of Interface
Diffstat (limited to 'python/vyos/ifconfig_vlan.py')
| -rw-r--r-- | python/vyos/ifconfig_vlan.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig_vlan.py b/python/vyos/ifconfig_vlan.py index 8e09db95a..576bb244a 100644 --- a/python/vyos/ifconfig_vlan.py +++ b/python/vyos/ifconfig_vlan.py @@ -21,7 +21,7 @@ def apply_vlan_config(vlan, config): to a VLAN interface """ - if type(vlan) != type(VLANIf("lo")): + if vlan.__class__ != VLANIf: raise TypeError() # get DHCP config dictionary and update values |
