summaryrefslogtreecommitdiff
path: root/templates/system/config-mgmt/commit-uri/node.def
blob: 7b483f9f7200cc8927343ea6ea485b5551c31cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
multi:
priority: 400
type: txt
help: Commit URI

syntax:expression: exec "/opt/vyatta/sbin/vyatta-config-mgmt.pl \
                           --action=valid-uri                   \
                           --uri=\"$VAR(@)\" "; "Invalid URI"

create: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \
           [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
             sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=add-uri
        fi;

delete: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \
           [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
             sudo ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=del-uri
        fi;

val_help: <uri> ; Uniform Resource Identifier
comp_help: 
  "scp://<user>:<passwd>@<host>/<dir>"
  "ftp://<user>:<passwd>@<host>/<dir>"
  "tftp://<host>/<dir>"