summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard-01 <39653662+hagbard-01@users.noreply.github.com>2019-09-23 08:17:35 -0700
committerGitHub <noreply@github.com>2019-09-23 08:17:35 -0700
commiteed2ba5379067ba3ef3a7b9eef72b8252958e766 (patch)
treec87a8ecba123e530c24e06057a482de50b2b621d
parente635223f3dbf244e528cdfe6ae867006143052a7 (diff)
parent2b5803479cae71b2d195b878b9d114dd22137808 (diff)
downloadvyos-1x-eed2ba5379067ba3ef3a7b9eef72b8252958e766.tar.gz
vyos-1x-eed2ba5379067ba3ef3a7b9eef72b8252958e766.zip
Merge pull request #136 from maznu/current
[ethernet] -T1679: during bootup: invalid literal for int() with base 10
-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