summaryrefslogtreecommitdiff
path: root/src/conf_mode/ntp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-20 23:25:56 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-20 23:25:56 +0100
commit940e9f5d60cfc180dc32100dfa0f28b74d3dcd4a (patch)
tree524b1885fe2ab1a3008cec4c590cc99e3b95db3d /src/conf_mode/ntp.py
parent7a211cf6a9bd9cf2014a1c23ea04aa69f49da0a4 (diff)
parent95c42faa4436c5dd761049a8a6e75996c815cc2c (diff)
downloadvyos-1x-940e9f5d60cfc180dc32100dfa0f28b74d3dcd4a.tar.gz
vyos-1x-940e9f5d60cfc180dc32100dfa0f28b74d3dcd4a.zip
Merge branch 'sstp-rewrite' of github.com:c-po/vyos-1x into current
* 'sstp-rewrite' of github.com:c-po/vyos-1x: sstp: T2008: migrate SSL certificate nodes sstp: T2006: fix valueHelp and validators for numeric values sstp: T2008: remove req-limit config node sstp: T2110: use uniform RADIUS CLI syntax sstp: T2008: adjust config syntax to common style ntp: only import deepcopy from copy sstp: T2008: use pep8 formatting sstp: T2008: dns: unwind configuration sstp: T2008: move to vpn node sstp: T2007: fix MTU boundaries
Diffstat (limited to 'src/conf_mode/ntp.py')
-rwxr-xr-xsrc/conf_mode/ntp.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index f706d502f..c3e8d51b3 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2018 VyOS maintainers and contributors
+# Copyright (C) 2018-2020 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -13,15 +13,13 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-#
import sys
import os
-
import jinja2
import ipaddress
-import copy
+
+from copy import deepcopy
from vyos.config import Config
from vyos import ConfigError
@@ -78,7 +76,7 @@ default_config_data = {
}
def get_config():
- ntp = copy.deepcopy(default_config_data)
+ ntp = deepcopy(default_config_data)
conf = Config()
if not conf.exists('system ntp'):
return None