From dea25e199fc095aa64dc2f8b80aa152a2f4c6870 Mon Sep 17 00:00:00 2001 From: hagbard Date: Wed, 20 Mar 2019 13:21:56 -0700 Subject: [arp] bugfix for 'del prot static arp hwaddr' --- src/conf_mode/arp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/conf_mode/arp.py b/src/conf_mode/arp.py index 88c054010..aeca08432 100755 --- a/src/conf_mode/arp.py +++ b/src/conf_mode/arp.py @@ -65,7 +65,7 @@ def generate(c): config_data['remove'].append(ip_addr) else: for ip_addr in c_eff_cnf: - if not ip_addr in c: + if not ip_addr in c or c[ip_addr] == None: config_data['remove'].append(ip_addr) ### add/update @@ -74,7 +74,7 @@ def generate(c): if not ip_addr in c_eff_cnf: config_data['update'][ip_addr] = c[ip_addr] if ip_addr in c_eff_cnf: - if c[ip_addr] != c_eff_cnf[ip_addr]: + if c[ip_addr] != c_eff_cnf[ip_addr] and c[ip_addr] != None: config_data['update'][ip_addr] = c[ip_addr] return config_data -- cgit v1.2.3