summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-15 12:06:43 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-15 12:06:43 -0700
commit381dcdcc46b8652135d59342e33535d1aa750e05 (patch)
treef9f1e987b8cbc8151a0a06b8d33e6afa63a1f5e5 /templates
parentc3fbefc50d0a039b88dae8dd6966cf0ce83f556b (diff)
downloadvyatta-cfg-qos-381dcdcc46b8652135d59342e33535d1aa750e05.tar.gz
vyatta-cfg-qos-381dcdcc46b8652135d59342e33535d1aa750e05.zip
Allow match on Ethernet protocol name
Allow using common values supported by TC filter.
Diffstat (limited to 'templates')
-rw-r--r--templates/traffic-policy/limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def16
-rw-r--r--templates/traffic-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def16
-rw-r--r--templates/traffic-policy/shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def16
3 files changed, 42 insertions, 6 deletions
diff --git a/templates/traffic-policy/limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/traffic-policy/limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
index 05d6511..824405b 100644
--- a/templates/traffic-policy/limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
+++ b/templates/traffic-policy/limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
@@ -1,3 +1,15 @@
-type: u32
+type: txt
help: Set Ethernet protocol for this match
-syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535"
+allowed: echo \
+ all 802.1Q 802_2 802_3 aarp aoe arp atalk \
+ dec ip ipv6 ipx lat localtalk rarp snap x25
+
+comp_help: <0-65536> Ethernet protocol value or name
+Common names:
+ all Any protocol
+ ip Internet IP (IPv4)
+ ipv6 Internet IP (IPv6)
+ arp Address Resolution Protocol
+ atalk Appletalk
+ ipx Novell Internet Packet Exchange
+ 802.1Q 802.1Q VLAN tag
diff --git a/templates/traffic-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/traffic-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
index 05d6511..824405b 100644
--- a/templates/traffic-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
+++ b/templates/traffic-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
@@ -1,3 +1,15 @@
-type: u32
+type: txt
help: Set Ethernet protocol for this match
-syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535"
+allowed: echo \
+ all 802.1Q 802_2 802_3 aarp aoe arp atalk \
+ dec ip ipv6 ipx lat localtalk rarp snap x25
+
+comp_help: <0-65536> Ethernet protocol value or name
+Common names:
+ all Any protocol
+ ip Internet IP (IPv4)
+ ipv6 Internet IP (IPv6)
+ arp Address Resolution Protocol
+ atalk Appletalk
+ ipx Novell Internet Packet Exchange
+ 802.1Q 802.1Q VLAN tag
diff --git a/templates/traffic-policy/shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/traffic-policy/shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
index 05d6511..824405b 100644
--- a/templates/traffic-policy/shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
+++ b/templates/traffic-policy/shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def
@@ -1,3 +1,15 @@
-type: u32
+type: txt
help: Set Ethernet protocol for this match
-syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535"
+allowed: echo \
+ all 802.1Q 802_2 802_3 aarp aoe arp atalk \
+ dec ip ipv6 ipx lat localtalk rarp snap x25
+
+comp_help: <0-65536> Ethernet protocol value or name
+Common names:
+ all Any protocol
+ ip Internet IP (IPv4)
+ ipv6 Internet IP (IPv6)
+ arp Address Resolution Protocol
+ atalk Appletalk
+ ipx Novell Internet Packet Exchange
+ 802.1Q 802.1Q VLAN tag