diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:09:44 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 18:09:44 +0200 |
commit | f05c683cf1ff4a829f3285ffc791b87b4dc656ac (patch) | |
tree | 9a97e0c2e879f7f5e3bd5be3a2658cb40761446d | |
parent | a39ae13ccc2a1154a1943246e1b8b45add11c560 (diff) | |
download | vyos-1x-f05c683cf1ff4a829f3285ffc791b87b4dc656ac.tar.gz vyos-1x-f05c683cf1ff4a829f3285ffc791b87b4dc656ac.zip |
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.
-rwxr-xr-x | src/conf_mode/ntp.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'])) |