summaryrefslogtreecommitdiff
path: root/templates-skeleton
diff options
context:
space:
mode:
Diffstat (limited to 'templates-skeleton')
-rw-r--r--templates-skeleton/interface-templates/redirect/node.def18
-rw-r--r--templates-skeleton/interface-templates/traffic-policy/in/node.def5
-rw-r--r--templates-skeleton/interface-templates/traffic-policy/node.def1
-rw-r--r--templates-skeleton/interface-templates/traffic-policy/out/node.def5
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.def4
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/description/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/destination/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/protocol/node.def15
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/source/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/interface/node.def7
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/address/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/port/node.def5
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/dscp/node.def18
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/protocol/node.def16
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/address/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/port/node.def6
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/address/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/port/node.def5
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/dscp/node.def18
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/protocol/node.def16
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/address/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/node.def1
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/port/node.def6
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/mark/node.def2
-rw-r--r--templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/vif/node.def5
31 files changed, 174 insertions, 0 deletions
diff --git a/templates-skeleton/interface-templates/redirect/node.def b/templates-skeleton/interface-templates/redirect/node.def
new file mode 100644
index 0000000..daff346
--- /dev/null
+++ b/templates-skeleton/interface-templates/redirect/node.def
@@ -0,0 +1,18 @@
+type: txt
+help: Incoming packet redirection destination
+allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input
+
+syntax:expression: $VAR(@) != "$IFNAME" ;\
+ "interface $IFNAME: redirect to same interface not allowed"
+val_help: Interface for packet redirection
+
+commit:expression: $VAR(../mirror) == "";\
+ "interface $IFNAME : can not do both redirect and mirror"
+
+commit:expression: $VAR(../traffic-policy/in) == ""; \
+ "interface $IFNAME : can not use ingress policy and redirect"
+
+commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all"
+
+update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $IFNAME
diff --git a/templates-skeleton/interface-templates/traffic-policy/in/node.def b/templates-skeleton/interface-templates/traffic-policy/in/node.def
new file mode 100644
index 0000000..61cdc0a
--- /dev/null
+++ b/templates-skeleton/interface-templates/traffic-policy/in/node.def
@@ -0,0 +1,5 @@
+type: txt
+help: Ingress traffic policy for interface
+allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy in
+update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface $IFNAME in $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface $IFNAME in
diff --git a/templates-skeleton/interface-templates/traffic-policy/node.def b/templates-skeleton/interface-templates/traffic-policy/node.def
new file mode 100644
index 0000000..2b2cf68
--- /dev/null
+++ b/templates-skeleton/interface-templates/traffic-policy/node.def
@@ -0,0 +1 @@
+help: Traffic-policy for interface
diff --git a/templates-skeleton/interface-templates/traffic-policy/out/node.def b/templates-skeleton/interface-templates/traffic-policy/out/node.def
new file mode 100644
index 0000000..37eaa5b
--- /dev/null
+++ b/templates-skeleton/interface-templates/traffic-policy/out/node.def
@@ -0,0 +1,5 @@
+type: txt
+help: Egress traffic policy for interface
+allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out
+update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface $IFNAME out $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface $IFNAME out
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.def
new file mode 100644
index 0000000..cde128f
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.def
@@ -0,0 +1,4 @@
+tag:
+type: txt
+syntax:expression: pattern $VAR(@) "^[^-]" ; "Match queue name cannot start with \"-\""
+help: Class matching rule name
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/description/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/description/node.def
new file mode 100644
index 0000000..903f260
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/description/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: Description for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/destination/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/destination/node.def
new file mode 100644
index 0000000..92fb9a9
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/destination/node.def
@@ -0,0 +1,2 @@
+type: macaddr
+help: Ethernet destination address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/node.def
new file mode 100644
index 0000000..454c1ed
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/node.def
@@ -0,0 +1 @@
+help: Ethernet header match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/protocol/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/protocol/node.def
new file mode 100644
index 0000000..9da50a6
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/protocol/node.def
@@ -0,0 +1,15 @@
+type: txt
+help: Ethernet protocol for this match
+allowed: echo \
+ all 802.1Q 802_2 802_3 aarp aoe arp atalk \
+ dec ip ipv6 ipx lat localtalk rarp snap x25
+
+val_help: u32:0-65535; Ethernet protocol number
+val_help: txt; Ethernet protocol name
+val_help: all; Any protocol
+val_help: ip; Internet IP (IPv4)
+val_help: _ipv6; Internet IP (IPv6)
+val_help: arp; Address Resolution Protocol
+val_help: atalk; Appletalk
+val_help: ipx; Novell Internet Packet Exchange
+val_help: 802.1Q; 802.1Q VLAN tag
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/source/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/source/node.def
new file mode 100644
index 0000000..3094167
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ether/source/node.def
@@ -0,0 +1,2 @@
+type: macaddr
+help: Ethernet source address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/interface/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/interface/node.def
new file mode 100644
index 0000000..f12c59c
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/interface/node.def
@@ -0,0 +1,7 @@
+type: txt
+help: Interface name for this match
+syntax:expression: exec "[ -f /sys/class/net/$VAR(@)/ifindex ]" ; "Interface must already exist"
+allowed: local -a array
+ array=( /sys/class/net/* )
+ echo -n ${array[@]##*/}
+
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/address/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/address/node.def
new file mode 100644
index 0000000..8d02285
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: IP destination address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/node.def
new file mode 100644
index 0000000..54eef5b
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/node.def
@@ -0,0 +1 @@
+help: Match on destination port or address
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/port/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/port/node.def
new file mode 100644
index 0000000..fc85c5f
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/destination/port/node.def
@@ -0,0 +1,5 @@
+type: txt
+help: TCP (or UDP) destination port for this match
+
+val_help: u32:1-65535; Numeric IP port
+val_help: txt; Assigned TCP (or UDP) port name
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/dscp/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/dscp/node.def
new file mode 100644
index 0000000..224b002
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/dscp/node.def
@@ -0,0 +1,18 @@
+type: txt
+help: Match on Differentiated Services Codepoint (DSCP)
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dscp $VAR(@)"
+allowed: awk '
+ /^#/ { next }
+ { printf "%s ", $2 }' </etc/iproute2/rt_dsfield
+val_help: u32:0-63;Differentiated Services Codepoint (DSCP) value
+val_help: default; match DSCP (000000)
+val_help: reliability; match; DSCP (000001)
+val_help: throughput; match; DSCP (000010)
+val_help: lowdelay; match; DSCP (000100)
+val_help: priority; match; DSCP (001000)
+val_help: immediate; match; DSCP (010000)
+val_help: flash; match DSCP (011000)
+val_help: flash-override; match DSCP (100000)
+val_help: critical; match DSCP (101000)
+val_help: internet; match; DSCP (110000)
+val_help: network; match; DSCP (111000)
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/node.def
new file mode 100644
index 0000000..517dc71
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/node.def
@@ -0,0 +1,2 @@
+help: Match IP protocol header
+
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/protocol/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/protocol/node.def
new file mode 100644
index 0000000..b0ef59f
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/protocol/node.def
@@ -0,0 +1,16 @@
+type: txt
+help: Match IP protocol name or number
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --protocol $VAR(@)"
+allowed: awk '
+ /^#/ { next }
+ { if($1 != "ip") printf "%s ", $1 }' </etc/protocols
+val_help: u32:0-255; IP protocol value
+val_help: icmp; Internet Control Message Protocol
+val_help: igmp; Internet Group Management Protocol
+val_help: ggp; Gateway-Gateway protocol
+val_help: tcp; Transmission Control Protocol
+val_help: egp; Exterior Gateway Protocol
+val_help: udp; User Datagram Protocol
+val_help: gre; General Routing Encapsulation
+val_help: ospf; Open Shortest Path First IGP
+val_help: sctp; Stream Control Transmission Protocol
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/address/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/address/node.def
new file mode 100644
index 0000000..6053344
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/address/node.def
@@ -0,0 +1,2 @@
+type: ipv4net
+help: IP source address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/node.def
new file mode 100644
index 0000000..4271b94
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/node.def
@@ -0,0 +1 @@
+help: Match on source port or address
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/port/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/port/node.def
new file mode 100644
index 0000000..6d211d1
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ip/source/port/node.def
@@ -0,0 +1,6 @@
+type: txt
+help: TCP (or UDP) source port for this match
+
+val_help: u32:1-65535; Numeric IP port
+val_help: txt; Assigned TCP (or UDP) port name
+
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/address/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/address/node.def
new file mode 100644
index 0000000..3fbbc31
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/address/node.def
@@ -0,0 +1,2 @@
+type: ipv6net
+help: IP destination address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/node.def
new file mode 100644
index 0000000..54eef5b
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/node.def
@@ -0,0 +1 @@
+help: Match on destination port or address
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/port/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/port/node.def
new file mode 100644
index 0000000..fc85c5f
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/destination/port/node.def
@@ -0,0 +1,5 @@
+type: txt
+help: TCP (or UDP) destination port for this match
+
+val_help: u32:1-65535; Numeric IP port
+val_help: txt; Assigned TCP (or UDP) port name
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/dscp/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/dscp/node.def
new file mode 100644
index 0000000..224b002
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/dscp/node.def
@@ -0,0 +1,18 @@
+type: txt
+help: Match on Differentiated Services Codepoint (DSCP)
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dscp $VAR(@)"
+allowed: awk '
+ /^#/ { next }
+ { printf "%s ", $2 }' </etc/iproute2/rt_dsfield
+val_help: u32:0-63;Differentiated Services Codepoint (DSCP) value
+val_help: default; match DSCP (000000)
+val_help: reliability; match; DSCP (000001)
+val_help: throughput; match; DSCP (000010)
+val_help: lowdelay; match; DSCP (000100)
+val_help: priority; match; DSCP (001000)
+val_help: immediate; match; DSCP (010000)
+val_help: flash; match DSCP (011000)
+val_help: flash-override; match DSCP (100000)
+val_help: critical; match DSCP (101000)
+val_help: internet; match; DSCP (110000)
+val_help: network; match; DSCP (111000)
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/node.def
new file mode 100644
index 0000000..8ff47bb
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/node.def
@@ -0,0 +1 @@
+help: Match IPV6 header
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/protocol/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/protocol/node.def
new file mode 100644
index 0000000..355c6a6
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/protocol/node.def
@@ -0,0 +1,16 @@
+type: txt
+help: Match IP protocol name or number
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --protocol $VAR(@)"
+allowed: awk '
+ /^#/ { next }
+ { printf "%s ", $1 }' </etc/protocols
+val_help: u32:0-255; IP protocol value
+val_help: icmp; Internet Control Message Protocol
+val_help: igmp; Internet Group Management Protocol
+val_help: ggp; Gateway-Gateway protocol
+val_help: tcp; Transmission Control Protocol
+val_help: egp; Exterior Gateway Protocol
+val_help: udp; User Datagram Protocol
+val_help: gre; General Routing Encapsulation
+val_help: ospf; Open Shortest Path First IGP
+val_help: sctp; Stream Control Transmission Protocol
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/address/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/address/node.def
new file mode 100644
index 0000000..9071a74
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/address/node.def
@@ -0,0 +1,2 @@
+type: ipv6net
+help: IP source address for this match
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/node.def
new file mode 100644
index 0000000..4271b94
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/node.def
@@ -0,0 +1 @@
+help: Match on source port or address
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/port/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/port/node.def
new file mode 100644
index 0000000..6d211d1
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/ipv6/source/port/node.def
@@ -0,0 +1,6 @@
+type: txt
+help: TCP (or UDP) source port for this match
+
+val_help: u32:1-65535; Numeric IP port
+val_help: txt; Assigned TCP (or UDP) port name
+
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/mark/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/mark/node.def
new file mode 100644
index 0000000..a3a805e
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/mark/node.def
@@ -0,0 +1,2 @@
+type: u32
+help: Match on mark applied by firewall
diff --git a/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/vif/node.def b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/vif/node.def
new file mode 100644
index 0000000..d975074
--- /dev/null
+++ b/templates-skeleton/qos-match-templates/class/node.tag/match/node.tag/vif/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Virtual Local Area Network (VLAN) ID for this match
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4095; \
+ "VLAN ID must be between 0 and 4095"
+val_help: u32:0-4095; Virtual Local Area Network (VLAN) tag