summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-16 21:19:37 +0200
committerChristian Poessinger <christian@poessinger.com>2018-05-16 21:19:37 +0200
commit39e706fb245d9f751e2b54017b71f9d6ebc896a8 (patch)
tree7a705bdb62c770461ec4399e33d118f76bd18877
parent959bf023496c1611d2d6d77b24f72b3e964827ce (diff)
downloadvyos-1x-39e706fb245d9f751e2b54017b71f9d6ebc896a8.tar.gz
vyos-1x-39e706fb245d9f751e2b54017b71f9d6ebc896a8.zip
conf_mode: remove generation time from config header and adjust scriptname
-rwxr-xr-xsrc/conf_mode/bcast_relay.py4
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py2
-rwxr-xr-xsrc/conf_mode/mdns_repeater.py4
-rwxr-xr-xsrc/conf_mode/ntp.py2
-rwxr-xr-xsrc/conf_mode/ssh.py2
5 files changed, 6 insertions, 8 deletions
diff --git a/src/conf_mode/bcast_relay.py b/src/conf_mode/bcast_relay.py
index 785690d9c..95f6215b5 100755
--- a/src/conf_mode/bcast_relay.py
+++ b/src/conf_mode/bcast_relay.py
@@ -19,7 +19,6 @@
import sys
import os
import fnmatch
-import time
import subprocess
from vyos.config import Config
@@ -69,8 +68,7 @@ def verify(relays):
return None
def generate(relays):
- config_header = '### Autogenerated by {0} on {tm} ###\n'.format(os.path.basename(__file__),
- tm=time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime()))
+ config_header = '### Autogenerated by bcast_relay.py ###\n'
config_dir = os.path.dirname(config_file)
config_filename = os.path.basename(config_file)
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index be48cde60..77e406dcc 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -31,7 +31,7 @@ config_file = r'/etc/powerdns/recursor.conf'
# especially in the semicolon-separated lists of name servers.
# Please be careful if you edit the template.
config_tmpl = """
-### Autogenerated by vyos-config-dns-forwarding.py ###
+### Autogenerated by dns_forwarding.py ###
# Non-configurable defaults
daemon=yes
diff --git a/src/conf_mode/mdns_repeater.py b/src/conf_mode/mdns_repeater.py
index e648fd64f..474a6a5cf 100755
--- a/src/conf_mode/mdns_repeater.py
+++ b/src/conf_mode/mdns_repeater.py
@@ -18,8 +18,8 @@
import sys
import os
+
import netifaces
-import time
from vyos.config import Config
from vyos import ConfigError
@@ -59,7 +59,7 @@ def verify(mdns):
return None
def generate(mdns):
- config_header = '### Autogenerated by vyos-update-mdns-repeater.py on {tm} ###\n'.format(tm=time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime()))
+ config_header = '### Autogenerated by mdns_repeater.py ###\n'
if len(mdns) > 0:
config_args = 'DAEMON_ARGS="' + ' '.join(str(e) for e in mdns) + '"\n'
else:
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index 8be12e44e..9a4846bdf 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -29,7 +29,7 @@ config_file = r'/etc/ntp.conf'
# Please be careful if you edit the template.
config_tmpl = """
-### Autogenerated by vyos-config-ntp.py ###
+### Autogenerated by ntp.py ###
#
# Non-configurable defaults
diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py
index a7877eaeb..7071a6ab4 100755
--- a/src/conf_mode/ssh.py
+++ b/src/conf_mode/ssh.py
@@ -29,7 +29,7 @@ config_file = r'/etc/ssh/sshd_config'
# Please be careful if you edit the template.
config_tmpl = """
-### Autogenerated by vyos-config-ssh.py ###
+### Autogenerated by ssh.py ###
# Non-configurable defaults
Protocol 2