From fe639cd05002b16a82b74262966598bab976e67f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Nov 2018 10:44:48 +0100 Subject: Lint fixup of opmode XML indention --- op-mode-definitions/dns-forwarding.xml | 3 +- op-mode-definitions/dynamic-dns.xml | 1 - op-mode-definitions/poweroff.xml | 64 ++++++++++++++---------------- op-mode-definitions/pppoe-server.xml | 2 +- op-mode-definitions/reboot.xml | 64 ++++++++++++++---------------- op-mode-definitions/show-arp.xml | 35 ++++++++-------- op-mode-definitions/show-bridge.xml | 3 +- op-mode-definitions/show-configuration.xml | 62 ++++++++++++++--------------- op-mode-definitions/show-disk.xml | 33 ++++++++------- op-mode-definitions/show-hardware.xml | 7 ---- op-mode-definitions/show-host.xml | 55 ++++++++++++------------- op-mode-definitions/show-ntp.xml | 2 +- 12 files changed, 150 insertions(+), 181 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/dns-forwarding.xml b/op-mode-definitions/dns-forwarding.xml index be71302cd..ac141174f 100644 --- a/op-mode-definitions/dns-forwarding.xml +++ b/op-mode-definitions/dns-forwarding.xml @@ -1,5 +1,4 @@ - @@ -38,7 +37,7 @@ sudo ${vyos_op_scripts_dir}/dns_forwarding_restart.sh - + diff --git a/op-mode-definitions/dynamic-dns.xml b/op-mode-definitions/dynamic-dns.xml index 76c473fd7..6ea6482e1 100644 --- a/op-mode-definitions/dynamic-dns.xml +++ b/op-mode-definitions/dynamic-dns.xml @@ -1,5 +1,4 @@ - diff --git a/op-mode-definitions/poweroff.xml b/op-mode-definitions/poweroff.xml index e2483fefc..b4163bcb9 100644 --- a/op-mode-definitions/poweroff.xml +++ b/op-mode-definitions/poweroff.xml @@ -5,7 +5,6 @@ Poweroff the system sudo ${vyos_op_scripts_dir}/powerctrl.py --poweroff - @@ -13,46 +12,41 @@ sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff - Cancel a pending poweroff sudo ${vyos_op_scripts_dir}/powerctrl.py --cancel - - - - Poweroff in X minutes - - <Minutes> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $4 - - - - - - Poweroff at a specific time - - <HH:MM> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 - - - - Poweroff at a specific date - - <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $5 - - - - + + + Poweroff in X minutes + + <Minutes> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $4 + + + + Poweroff at a specific time + + <HH:MM> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 + + + + Poweroff at a specific date + + <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $5 + + + diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml index 7595d6ecf..7c0b05484 100644 --- a/op-mode-definitions/pppoe-server.xml +++ b/op-mode-definitions/pppoe-server.xml @@ -26,7 +26,7 @@ /usr/bin/accel-cmd 'pppoe interface show' - + diff --git a/op-mode-definitions/reboot.xml b/op-mode-definitions/reboot.xml index affdffd98..2c8daec5d 100644 --- a/op-mode-definitions/reboot.xml +++ b/op-mode-definitions/reboot.xml @@ -5,7 +5,6 @@ Reboot the system sudo ${vyos_op_scripts_dir}/powerctrl.py --reboot - @@ -13,46 +12,41 @@ sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot - Cancel a pending reboot sudo ${vyos_op_scripts_dir}/powerctrl.py --cancel - - - - Reboot in X minutes - - <Minutes> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $4 - - - - - - Reboot at a specific time - - <HH:MM> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 - - - - Reboot at a specific date - - <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> - - - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $5 - - - - + + + Reboot in X minutes + + <Minutes> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $4 + + + + Reboot at a specific time + + <HH:MM> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 + + + + Reboot at a specific date + + <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $5 + + + diff --git a/op-mode-definitions/show-arp.xml b/op-mode-definitions/show-arp.xml index 92c231c6f..ef3e399f8 100644 --- a/op-mode-definitions/show-arp.xml +++ b/op-mode-definitions/show-arp.xml @@ -2,24 +2,23 @@ - - - Show Address Resolution Protocol (ARP) information - - /usr/sbin/arp -e -n - - - - Show Address Resolution Protocol (ARP) cache for specified interface - - - - - /usr/sbin/arp -e -n -i '$4' - - - - + + + Show Address Resolution Protocol (ARP) information + + /usr/sbin/arp -e -n + + + + Show Address Resolution Protocol (ARP) cache for specified interface + + + + + /usr/sbin/arp -e -n -i '$4' + + + diff --git a/op-mode-definitions/show-bridge.xml b/op-mode-definitions/show-bridge.xml index b285e2288..8c1f7c398 100644 --- a/op-mode-definitions/show-bridge.xml +++ b/op-mode-definitions/show-bridge.xml @@ -30,8 +30,7 @@ /sbin/brctl showstp $3 - - + diff --git a/op-mode-definitions/show-configuration.xml b/op-mode-definitions/show-configuration.xml index 90c1533fb..318942ab0 100644 --- a/op-mode-definitions/show-configuration.xml +++ b/op-mode-definitions/show-configuration.xml @@ -2,38 +2,36 @@ - - - Show available saved configurations - - - cli-shell-api showCfg --show-active-only --show-hide-secrets - - - - - Show running configuration (including default values) - - - cli-shell-api showCfg --show-show-defaults --show-active-only --show-hide-secrets - - - - Show running configuration as set commands - - - cli-shell-api showCfg --show-active-only | vyos-config-to-commands - - - - Show available saved configurations - - - ${vyos_op_scripts_dir}/show_configuration_files.sh - - - - + + + Show available saved configurations + + + cli-shell-api showCfg --show-active-only --show-hide-secrets + + + + Show running configuration (including default values) + + + cli-shell-api showCfg --show-show-defaults --show-active-only --show-hide-secrets + + + + Show running configuration as set commands + + + cli-shell-api showCfg --show-active-only | vyos-config-to-commands + + + + Show available saved configurations + + + ${vyos_op_scripts_dir}/show_configuration_files.sh + + + diff --git a/op-mode-definitions/show-disk.xml b/op-mode-definitions/show-disk.xml index 8a8e35515..37da07fbe 100644 --- a/op-mode-definitions/show-disk.xml +++ b/op-mode-definitions/show-disk.xml @@ -2,23 +2,22 @@ - - - Show status of disk device - - - - - - - - Show disk drive formatting - - ${vyos_op_scripts_dir}/show_disk_format.sh $3 - - - - + + + Show status of disk device + + + + + + + + Show disk drive formatting + + ${vyos_op_scripts_dir}/show_disk_format.sh $3 + + + diff --git a/op-mode-definitions/show-hardware.xml b/op-mode-definitions/show-hardware.xml index 6cd912aea..a49036397 100644 --- a/op-mode-definitions/show-hardware.xml +++ b/op-mode-definitions/show-hardware.xml @@ -27,21 +27,18 @@ - Show system DMI details ${vyatta_bindir}/vyatta-show-dmi - Show system RAM details cat /proc/meminfo - Show system PCI bus details @@ -56,8 +53,6 @@ - - Show SCSI device information @@ -72,7 +67,6 @@ - Show peripherals connected to the USB bus @@ -87,7 +81,6 @@ - diff --git a/op-mode-definitions/show-host.xml b/op-mode-definitions/show-host.xml index b3ea129a2..d7f8104aa 100644 --- a/op-mode-definitions/show-host.xml +++ b/op-mode-definitions/show-host.xml @@ -2,36 +2,31 @@ - - - Show host information - - - - - Show domain name - - /bin/domainname -d - - - - - Show host name - - /bin/hostname - - - - - Lookup host information for hostname|IPv4 address - - /usr/bin/host $4 - - - - - - + + + Show host information + + + + + Show domain name + + /bin/domainname -d + + + + Show host name + + /bin/hostname + + + + Lookup host information for hostname|IPv4 address + + /usr/bin/host $4 + + + diff --git a/op-mode-definitions/show-ntp.xml b/op-mode-definitions/show-ntp.xml index 4f2f2192b..4db43b449 100644 --- a/op-mode-definitions/show-ntp.xml +++ b/op-mode-definitions/show-ntp.xml @@ -6,7 +6,7 @@ Show peer status of NTP daemon - if ps -C ntpd &>/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi + if ps -C ntpd &>/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi -- cgit v1.2.3