From f05c683cf1ff4a829f3285ffc791b87b4dc656ac Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 5 Apr 2020 18:09:44 +0200 Subject: ntp: T2230: fix wrong import statement Commit 579275e ("ntp: T2230: move inlined templates to dedicated files") altered the import statements for forgot to adjust the code. --- src/conf_mode/ntp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf_mode/ntp.py') diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py index e147c8e4c..0f635556b 100755 --- a/src/conf_mode/ntp.py +++ b/src/conf_mode/ntp.py @@ -44,7 +44,7 @@ def get_config(): if conf.exists('allow-clients address'): networks = conf.return_values('allow-clients address') for n in networks: - addr = ipaddress.ip_network(n) + addr = ip_network(n) net = { "network" : n, "address" : addr.network_address, @@ -86,7 +86,7 @@ def verify(ntp): for n in ntp['allowed_networks']: try: - addr = ipaddress.ip_network( n['network'] ) + addr = ip_network( n['network'] ) break except ValueError: raise ConfigError("{0} does not appear to be a valid IPv4 or IPv6 network, check host bits!".format(n['network'])) -- cgit v1.2.3