diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-03-27 22:28:08 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-03-27 22:29:20 -0700 |
commit | 6370b386ccb1721f50f57e6427683d77876811c4 (patch) | |
tree | 089e88efa8f239de57f3df45096c254f5b163edd /templates-op | |
parent | b705ec3c8fd29c3b8a8667165870f8d93d2bee48 (diff) | |
download | vyatta-config-mgmt-6370b386ccb1721f50f57e6427683d77876811c4.tar.gz vyatta-config-mgmt-6370b386ccb1721f50f57e6427683d77876811c4.zip |
Change the compare script to use the new cli-shell-api showConfig api
Diffstat (limited to 'templates-op')
-rw-r--r-- | templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def b/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def new file mode 100644 index 0000000..82f6d2d --- /dev/null +++ b/templates-op/show/system/commit/file/node.tag/compare/node.tag/commands/node.def @@ -0,0 +1,8 @@ +help: compare config file revisions +run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; + then + ${vyatta_sbindir}/vyatta-config-mgmt.pl \ + --action=diff "$5" "$7" "commands" + else + echo Must be an admin user to run this command. + fi |