diff options
author | Marek Isalski <git@maz.nu> | 2019-09-23 15:56:31 +0100 |
---|---|---|
committer | Marek Isalski <git@maz.nu> | 2019-09-23 15:56:31 +0100 |
commit | 2b5803479cae71b2d195b878b9d114dd22137808 (patch) | |
tree | c87a8ecba123e530c24e06057a482de50b2b621d | |
parent | e635223f3dbf244e528cdfe6ae867006143052a7 (diff) | |
download | vyos-1x-2b5803479cae71b2d195b878b9d114dd22137808.tar.gz vyos-1x-2b5803479cae71b2d195b878b9d114dd22137808.zip |
fixes T1679 (parsing MAC address as base-10)
-rw-r--r-- | python/vyos/ifconfig.py | 2 |
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 |