diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 2 | ||||
-rwxr-xr-x | src/op_mode/show_dhcp.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index be0279bd2..2ab75fcec 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -434,7 +434,7 @@ def verify(conf): if ifname in options['nhrp']: raise ConfigError(f'Can not delete interface tunnel {iftype} {ifname}, it is used by nhrp') - bridge = changes['bridge'] + bridge = options['bridge'] if bridge: raise ConfigError(f'Interface "{ifname}" can not be deleted as it belongs to bridge "{bridge}"!') diff --git a/src/op_mode/show_dhcp.py b/src/op_mode/show_dhcp.py index fd23cd9f1..f9577e57e 100755 --- a/src/op_mode/show_dhcp.py +++ b/src/op_mode/show_dhcp.py @@ -240,7 +240,7 @@ if __name__ == '__main__': stats = [] for p in pools: size = get_pool_size(conf, p) - leases = len(get_leases(lease_file, state='active', pool=p)) + leases = len(get_leases(conf, lease_file, state='active', pool=p)) use_percentage = round(leases / size * 100) if size != 0 else 0 |