diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-05-26 16:34:44 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-05-26 16:34:44 -0700 |
commit | 0d76417d76a6cc297fc7944b1f620ef4a83ef1f4 (patch) | |
tree | e1d8f0a2d8157a8791a9557a3719b18202de63fa /templates | |
parent | 2fbeac33be69e6adc9c9a9082f43d8c29faded8e (diff) | |
download | vyatta-op-0d76417d76a6cc297fc7944b1f620ef4a83ef1f4.tar.gz vyatta-op-0d76417d76a6cc297fc7944b1f620ef4a83ef1f4.zip |
Move DHCPv6 client op-mode commands to this package.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/release/dhcpv6/interface/node.def | 2 | ||||
-rw-r--r-- | templates/release/dhcpv6/interface/node.tag/node.def | 10 | ||||
-rw-r--r-- | templates/release/dhcpv6/node.def | 1 | ||||
-rw-r--r-- | templates/renew/dhcpv6/interface/node.def | 1 | ||||
-rw-r--r-- | templates/renew/dhcpv6/interface/node.tag/node.def | 10 | ||||
-rw-r--r-- | templates/renew/dhcpv6/node.def | 1 | ||||
-rw-r--r-- | templates/show/dhcpv6/client/leases/node.def | 3 | ||||
-rw-r--r-- | templates/show/dhcpv6/client/node.def | 1 |
8 files changed, 29 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/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 |