summaryrefslogtreecommitdiff
path: root/scripts/vyatta-cfg-cmd-wrapper
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-05-14 13:47:21 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-05-14 13:47:21 -0700
commitd36d0a6ea76d443c5e4072401eaa9dbf563c74bd (patch)
tree9daed3e19d3d5b8231a9894891ac00d4df9b9c3a /scripts/vyatta-cfg-cmd-wrapper
parent91bb77e328c9cad994609aeeccb33971eca1486f (diff)
downloadvyatta-cfg-d36d0a6ea76d443c5e4072401eaa9dbf563c74bd.tar.gz
vyatta-cfg-d36d0a6ea76d443c5e4072401eaa9dbf563c74bd.zip
initial checkin of comment feature for cli.
/* to create a comment */ > comment [PATH-TO-NODE] "my comments" /* to delete a comment */ > comment [PATH-TO-NODE] ""
Diffstat (limited to 'scripts/vyatta-cfg-cmd-wrapper')
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index 3b2f040..4941e37 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -220,6 +220,10 @@ case "$1" in
/opt/vyatta/sbin/vyatta-activate-config.pl activate "${@:2}"
RET_STATUS=$?
;;
+ comment)
+ /opt/vyatta/sbin/vyatta-comment-config.pl "${@:2}"
+ RET_STATUS=$?
+ ;;
commit)
# debug file /tmp/bar should be deleted before release
/opt/vyatta/sbin/my_commit -a >> /tmp/bar