summaryrefslogtreecommitdiff
path: root/templates/firewall/group/network-group/node.def
blob: e407b0aef7c3835b8e2eac1191a5358398f936e8 (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
25
26
27
28
29
tag:
priority: 200
type: txt
help: Firewall network-group

syntax:expression: exec "			        \
        if [ `echo $VAR(@) | wc -c` -gt 31 ]; then      \
          echo group name must be 31 characters or less;\
          exit 1 ;                                      \
        fi ; "

syntax:expression: pattern $VAR(@) "^[^-]" ; \
       "Firewall group name cannot start with \"-\""

syntax:expression: pattern $VAR(@) "^[^!]" ; \
       "Firewall group name cannot start with \"!\""

create: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
          --action=create-set                 \
          --set-type=network                  \
          --set-name="$VAR(@)"


delete: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
          --action=delete-set                 \
          --set-name="$VAR(@)"

comp_help: possible completions:
  <txt>    Set the name of the firewall network-group