From 2b5803479cae71b2d195b878b9d114dd22137808 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Mon, 23 Sep 2019 15:56:31 +0100 Subject: fixes T1679 (parsing MAC address as base-10) --- python/vyos/ifconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos') 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 -- cgit v1.2.3