diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-05-28 17:43:48 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-05-28 17:43:48 -0700 |
commit | 117041e7a7495dfdade0f4c94f38a5fcb1bda7b2 (patch) | |
tree | 9e4800b798f85986de0365a0c853b26ba0165fc6 /templates | |
parent | b1f7a5e6af6614935d608cd52bc7df7eb8e074b2 (diff) | |
parent | ce660cba1408ac05795b19bc5adaf605b470c34f (diff) | |
download | vyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.tar.gz vyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.zip |
Merge branch 'larkspur' of http://git.vyatta.com/vyatta-op into larkspur
Diffstat (limited to 'templates')
19 files changed, 59 insertions, 0 deletions
diff --git a/templates/release/dhcpv6/interface/node.def b/templates/release/dhcpv6/interface/node.def new file mode 100644 index 0000000..847df8e --- /dev/null +++ b/templates/release/dhcpv6/interface/node.def @@ -0,0 +1,2 @@ +help: Release a DHCPv6 lease on an interface + diff --git a/templates/release/dhcpv6/interface/node.tag/node.def b/templates/release/dhcpv6/interface/node.tag/node.def new file mode 100644 index 0000000..05f45c8 --- /dev/null +++ b/templates/release/dhcpv6/interface/node.tag/node.def @@ -0,0 +1,10 @@ +help: Release DHCPv6 lease for interface + +allowed: + local -a array + array=( /var/lib/dhcp3/dhclient_v6_*.conf ) + tail=${array[@]#/var/lib/dhcp3/dhclient_v6_} + ifnames=${tail[@]%.conf} + echo -n ${ifnames[@]} + +run: sudo /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --release --ifname "$4" diff --git a/templates/release/dhcpv6/node.def b/templates/release/dhcpv6/node.def new file mode 100644 index 0000000..ed4b8c2 --- /dev/null +++ b/templates/release/dhcpv6/node.def @@ -0,0 +1 @@ +help: Release a DHCPv6 lease
\ No newline at end of file diff --git a/templates/rename/node.def b/templates/rename/node.def new file mode 100644 index 0000000..b2270fd --- /dev/null +++ b/templates/rename/node.def @@ -0,0 +1 @@ +help: Re-name something. diff --git a/templates/rename/system/image/node.def b/templates/rename/system/image/node.def new file mode 100644 index 0000000..00e9c81 --- /dev/null +++ b/templates/rename/system/image/node.def @@ -0,0 +1 @@ +help: Re-name a system image. diff --git a/templates/rename/system/image/node.tag/node.def b/templates/rename/system/image/node.tag/node.def new file mode 100644 index 0000000..eb25def --- /dev/null +++ b/templates/rename/system/image/node.tag/node.def @@ -0,0 +1,6 @@ +help: System image to rename. + +allowed: + local -a images ; + images=`/opt/vyatta/bin/vyatta-boot-image.pl --list` + echo -n $images diff --git a/templates/rename/system/image/node.tag/node.tag/node.def b/templates/rename/system/image/node.tag/node.tag/node.def new file mode 100644 index 0000000..1f94c57 --- /dev/null +++ b/templates/rename/system/image/node.tag/node.tag/node.def @@ -0,0 +1,7 @@ +help: New name for system image. + +run: + old=$4 + new=$5 + sudo /opt/vyatta/bin/rename-image.pl --old_name $old --new_name $new + diff --git a/templates/rename/system/node.def b/templates/rename/system/node.def new file mode 100644 index 0000000..1d86fc2 --- /dev/null +++ b/templates/rename/system/node.def @@ -0,0 +1 @@ +help: Re-name a system object. diff --git a/templates/renew/dhcpv6/interface/node.def b/templates/renew/dhcpv6/interface/node.def new file mode 100644 index 0000000..eb69706 --- /dev/null +++ b/templates/renew/dhcpv6/interface/node.def @@ -0,0 +1 @@ +help: Renew DHCPv6 lease for an interface
\ No newline at end of file diff --git a/templates/renew/dhcpv6/interface/node.tag/node.def b/templates/renew/dhcpv6/interface/node.tag/node.def new file mode 100644 index 0000000..b6c5813 --- /dev/null +++ b/templates/renew/dhcpv6/interface/node.tag/node.def @@ -0,0 +1,10 @@ +help: Renew a DHCPv6 lease on an interface + +allowed: + local -a array + array=( /var/lib/dhcp3/dhclient_v6_*.conf ) + tail=${array[@]#/var/lib/dhcp3/dhclient_v6_} + ifnames=${tail[@]%.conf} + echo -n ${ifnames[@]} + +run: sudo /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --renew --ifname "$4"
\ No newline at end of file diff --git a/templates/renew/dhcpv6/node.def b/templates/renew/dhcpv6/node.def new file mode 100644 index 0000000..cbfb1bb --- /dev/null +++ b/templates/renew/dhcpv6/node.def @@ -0,0 +1 @@ +help: Renew a DHCPv6 lease diff --git a/templates/show/dhcpv6/client/leases/node.def b/templates/show/dhcpv6/client/leases/node.def new file mode 100644 index 0000000..8eb6954 --- /dev/null +++ b/templates/show/dhcpv6/client/leases/node.def @@ -0,0 +1,3 @@ +help: Display DHCPv6 client leases + +run: sudo /opt/vyatta/sbin/dhcpv6-client-show-leases.pl diff --git a/templates/show/dhcpv6/client/node.def b/templates/show/dhcpv6/client/node.def new file mode 100644 index 0000000..7c5b0c3 --- /dev/null +++ b/templates/show/dhcpv6/client/node.def @@ -0,0 +1 @@ +help: Display DHCPv6 client information diff --git a/templates/show/interfaces/input/detail/node.def b/templates/show/interfaces/input/detail/node.def new file mode 100644 index 0000000..9cb235b --- /dev/null +++ b/templates/show/interfaces/input/detail/node.def @@ -0,0 +1,2 @@ +help: Show detailed input functional block interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=input --action=show diff --git a/templates/show/interfaces/input/node.def b/templates/show/interfaces/input/node.def new file mode 100644 index 0000000..9114561 --- /dev/null +++ b/templates/show/interfaces/input/node.def @@ -0,0 +1,2 @@ +help: Show input functional block interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=input --action=show-brief diff --git a/templates/show/interfaces/input/node.tag/brief/node.def b/templates/show/interfaces/input/node.tag/brief/node.def new file mode 100644 index 0000000..ec7d295 --- /dev/null +++ b/templates/show/interfaces/input/node.tag/brief/node.def @@ -0,0 +1,2 @@ +help: Show summary of the specified input functional block interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" --action=show-brief diff --git a/templates/show/interfaces/input/node.tag/node.def b/templates/show/interfaces/input/node.tag/node.def new file mode 100644 index 0000000..ab21b37 --- /dev/null +++ b/templates/show/interfaces/input/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show specified input functional block interface information +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show input +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" diff --git a/templates/show/system/image/storage/node.def b/templates/show/system/image/storage/node.def new file mode 100644 index 0000000..0592adc --- /dev/null +++ b/templates/show/system/image/storage/node.def @@ -0,0 +1,3 @@ +help: Show disk space utilization of system images + +run: /opt/vyatta/bin/show-image-storage.pl diff --git a/templates/show/system/image/version/node.def b/templates/show/system/image/version/node.def new file mode 100644 index 0000000..b488a12 --- /dev/null +++ b/templates/show/system/image/version/node.def @@ -0,0 +1,2 @@ +help: Show installed Vyatta images with Vyatta version number +run: /opt/vyatta/bin/vyatta-boot-image.pl --show --show_vers |