-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T5307: QoS - traffic-class-map services
added new syntax to work with class match filters in QoS policy
- Loading branch information
1 parent
17e4607
commit 5d2987e
Showing
10 changed files
with
351 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- include start from qos/class-match-group.xml.i --> | ||
<leafNode name="match-group"> | ||
<properties> | ||
<help>Filter group for QoS policy</help> | ||
<valueHelp> | ||
<format>txt</format> | ||
<description>Match group name</description> | ||
</valueHelp> | ||
<completionHelp> | ||
<script>${vyos_completion_dir}/qos/list_traffic_match_group.py</script> | ||
</completionHelp> | ||
<multi/> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- include start from qos/class-match-ipv4.xml.i --> | ||
<node name="ip"> | ||
<properties> | ||
<help>Match IP protocol header</help> | ||
</properties> | ||
<children> | ||
<node name="destination"> | ||
<properties> | ||
<help>Match on destination port or address</help> | ||
</properties> | ||
<children> | ||
#include <include/qos/class-match-ipv4-address.xml.i> | ||
#include <include/port-number.xml.i> | ||
</children> | ||
</node> | ||
#include <include/qos/match-dscp.xml.i> | ||
#include <include/qos/max-length.xml.i> | ||
#include <include/ip-protocol.xml.i> | ||
<node name="source"> | ||
<properties> | ||
<help>Match on source port or address</help> | ||
</properties> | ||
<children> | ||
#include <include/qos/class-match-ipv4-address.xml.i> | ||
#include <include/port-number.xml.i> | ||
</children> | ||
</node> | ||
#include <include/qos/tcp-flags.xml.i> | ||
</children> | ||
</node> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- include start from qos/class-match-ipv6.xml.i --> | ||
<node name="ipv6"> | ||
<properties> | ||
<help>Match IPv6 protocol header</help> | ||
</properties> | ||
<children> | ||
<node name="destination"> | ||
<properties> | ||
<help>Match on destination port or address</help> | ||
</properties> | ||
<children> | ||
#include <include/qos/class-match-ipv6-address.xml.i> | ||
#include <include/port-number.xml.i> | ||
</children> | ||
</node> | ||
#include <include/qos/match-dscp.xml.i> | ||
#include <include/qos/max-length.xml.i> | ||
#include <include/ip-protocol.xml.i> | ||
<node name="source"> | ||
<properties> | ||
<help>Match on source port or address</help> | ||
</properties> | ||
<children> | ||
#include <include/qos/class-match-ipv6-address.xml.i> | ||
#include <include/port-number.xml.i> | ||
</children> | ||
</node> | ||
#include <include/qos/tcp-flags.xml.i> | ||
</children> | ||
</node> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- include start from qos/class-match-mark.xml.i --> | ||
<leafNode name="mark"> | ||
<properties> | ||
<help>Match on mark applied by firewall</help> | ||
<valueHelp> | ||
<format>u32</format> | ||
<description>FW mark to match</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 0-4294967295"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- include start from qos/class-match-vif.xml.i --> | ||
<leafNode name="vif"> | ||
<properties> | ||
<help>Virtual Local Area Network (VLAN) ID for this match</help> | ||
<valueHelp> | ||
<format>u32:0-4095</format> | ||
<description>Virtual Local Area Network (VLAN) tag </description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="numeric" argument="--range 0-4095"/> | ||
</constraint> | ||
<constraintErrorMessage>VLAN ID must be between 0 and 4095</constraintErrorMessage> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.