summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMarek Isalski <git@maz.nu>2019-09-23 15:56:31 +0100
committerMarek Isalski <git@maz.nu>2019-09-23 15:56:31 +0100
commit2b5803479cae71b2d195b878b9d114dd22137808 (patch)
treec87a8ecba123e530c24e06057a482de50b2b621d /python
parente635223f3dbf244e528cdfe6ae867006143052a7 (diff)
downloadvyos-1x-2b5803479cae71b2d195b878b9d114dd22137808.tar.gz
vyos-1x-2b5803479cae71b2d195b878b9d114dd22137808.zip
fixes T1679 (parsing MAC address as base-10)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 777b185a6..e8ff59891 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -210,7 +210,7 @@ class Interface:
# validate against the first mac address byte if it's a multicast
# address
- if int(mac.split(':')[0]) & 1:
+ if int(mac.split(':')[0], 16) & 1:
raise ValueError('{} is a multicast MAC address'.format(mac))
# overall mac address is not allowed to be 00:00:00:00:00:00