summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-15 12:07:32 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-15 12:07:32 -0700
commit9237511ddd73455a1dd0e9aefc6b1706fbe14e89 (patch)
treef9f1e987b8cbc8151a0a06b8d33e6afa63a1f5e5
parentb8fd01c33871a4ccc344976c5445d820820ce079 (diff)
parent381dcdcc46b8652135d59342e33535d1aa750e05 (diff)
downloadvyatta-cfg-qos-9237511ddd73455a1dd0e9aefc6b1706fbe14e89.tar.gz
vyatta-cfg-qos-9237511ddd73455a1dd0e9aefc6b1706fbe14e89.zip
Merge branch 'larkspur' of vm:git/vyatta-cfg-qos into larkspur
-rw-r--r--lib/Vyatta/Qos/Match.pm3
-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
4 files changed, 43 insertions, 8 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index 79cd0d3..591c2b0 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -34,8 +34,7 @@ sub new {
my %fields;
if ( $proto eq 'ether' ) {
- $fields{protocol} =
- getProtocol( $config->returnValue("ether protocol") );
+ $fields{protocol} = $config->returnValue("ether protocol");
$fields{src} = $config->returnValue("ether source");
$fields{dst} = $config->returnValue("ether destination");
} else {
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