summaryrefslogtreecommitdiff
path: root/templates/show/configuration/commands
diff options
context:
space:
mode:
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