summaryrefslogtreecommitdiff
path: root/templates/show/configuration/commands
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-24 15:34:23 +1000
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-24 15:34:23 +1000
commit7afbca72c1dfaf273eb366b2b372855ac1505440 (patch)
tree30e5474906ec132b250edae9801c408cb3f8c913 /templates/show/configuration/commands
parent3c9d639f65240d1745b6186a16ce0f6eb918e65c (diff)
parent73dfd3113cfb1226366023ef61cae7c870b6159f (diff)
downloadvyatta-op-mendocino.tar.gz
vyatta-op-mendocino.zip
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-op into mendocinomendocino
Diffstat (limited to 'templates/show/configuration/commands')
-rw-r--r--templates/show/configuration/commands/node.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/show/configuration/commands/node.def b/templates/show/configuration/commands/node.def
new file mode 100644
index 0000000..a2d55cf
--- /dev/null
+++ b/templates/show/configuration/commands/node.def
@@ -0,0 +1,7 @@
+help: Show running configuration as set commands
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+ then
+ ${vyatta_sbindir}/vyatta-config-gen-sets.pl
+ else
+ echo Must be an admin user to run this command.
+ fi