From cdc48c628ff09feab8485501ffc61c4217de4e7c Mon Sep 17 00:00:00 2001 From: Dmytro Aleksandrov Date: Wed, 15 Aug 2018 17:04:53 +0300 Subject: T689: Removed ntp and date op mode definition in virtue of xml rewrite --- .gitignore | 4 ++++ debian/control | 1 - templates/set/date/node.def | 1 - templates/set/date/node.tag/node.def | 3 --- templates/set/date/ntp/node.def | 2 -- templates/set/date/ntp/node.tag/node.def | 6 ------ templates/show/ntp/node.def | 6 ------ templates/show/ntp/node.tag/node.def | 3 --- 8 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 templates/set/date/node.def delete mode 100644 templates/set/date/node.tag/node.def delete mode 100644 templates/set/date/ntp/node.def delete mode 100644 templates/set/date/ntp/node.tag/node.def delete mode 100644 templates/show/ntp/node.def delete mode 100644 templates/show/ntp/node.tag/node.def diff --git a/.gitignore b/.gitignore index 8c3a92a..a68063f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ libtool /src/render_xml generated-templates/* + +# Intellij +.idea/ +*.iml diff --git a/debian/control b/debian/control index 4bff070..5d7427b 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,6 @@ Depends: sed (>= 4.1.5), console-terminus, ethtool, traceroute, - ntpdate, procps (>= 1:3.2.7-3), vyatta-cfg (>= 0.16.26), vyatta-cfg-system (>= 0.19.93), diff --git a/templates/set/date/node.def b/templates/set/date/node.def deleted file mode 100644 index 517fdbf..0000000 --- a/templates/set/date/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Set date and time diff --git a/templates/set/date/node.tag/node.def b/templates/set/date/node.tag/node.def deleted file mode 100644 index c593997..0000000 --- a/templates/set/date/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Set system date and time -allowed: echo -n '' '' '' '' -run: sudo /bin/date "$3" diff --git a/templates/set/date/ntp/node.def b/templates/set/date/ntp/node.def deleted file mode 100644 index 9235d2e..0000000 --- a/templates/set/date/ntp/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Set system date and time from Network Time Protocol (NTP) server -run: sudo ntpdate -u 0.vyatta.pool.ntp.org diff --git a/templates/set/date/ntp/node.tag/node.def b/templates/set/date/ntp/node.tag/node.def deleted file mode 100644 index 92e0533..0000000 --- a/templates/set/date/ntp/node.tag/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: Set system date and time with given NTP server -allowed: local -a arr - eval "arr=($(cli-shell-api listEffectiveNodes system ntp server))" - echo -n " " ${arr[@]} -run: sudo ntpdate -u $4 - diff --git a/templates/show/ntp/node.def b/templates/show/ntp/node.def deleted file mode 100644 index 71c8813..0000000 --- a/templates/show/ntp/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: Show peer status of network time daemon -run: if ps -C ntpd &>/dev/null ; then - ntpdc -n -c peers - else - echo NTP daemon disabled - fi diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def deleted file mode 100644 index e7bdb6a..0000000 --- a/templates/show/ntp/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show date and time of specified NTP server -allowed: awk '/^server/ { print $2 }' /etc/ntp.conf -run: /usr/sbin/ntpdate -q $3 -- cgit v1.2.3