Test XMLs for flow-instructions, set-field, apply-actions 95/5095/1
authormcsl <mcsl@cisco.com>
Mon, 3 Feb 2014 07:39:12 +0000 (13:09 +0530)
committermcsl <mcsl@cisco.com>
Mon, 3 Feb 2014 07:39:12 +0000 (13:09 +0530)
Signed-off-by: mcsl <mcsl@cisco.com>
12 files changed:
test-scripts/xmls/f210.xml [new file with mode: 0644]
test-scripts/xmls/f211.xml [new file with mode: 0644]
test-scripts/xmls/f212.xml [new file with mode: 0644]
test-scripts/xmls/f213.xml [new file with mode: 0644]
test-scripts/xmls/f214.xml [new file with mode: 0644]
test-scripts/xmls/f215.xml [new file with mode: 0644]
test-scripts/xmls/f216.xml [new file with mode: 0644]
test-scripts/xmls/f217.xml [new file with mode: 0644]
test-scripts/xmls/f218.xml [new file with mode: 0644]
test-scripts/xmls/f219.xml [new file with mode: 0644]
test-scripts/xmls/f220.xml [new file with mode: 0644]
test-scripts/xmls/f221.xml [new file with mode: 0644]

diff --git a/test-scripts/xmls/f210.xml b/test-scripts/xmls/f210.xml
new file mode 100644 (file)
index 0000000..cdcebb0
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <flow-name>set-field-ipv4-dst</flow-name>\r
+    <id>256</id>\r
+    <cookie_mask>255</cookie_mask>\r
+    <cookie>101</cookie>\r
+    <table_id>2</table_id>\r
+    <priority>2</priority>\r
+    <hard-timeout>1200</hard-timeout>\r
+    <idle-timeout>3400</idle-timeout>\r
+    <installHw>false</installHw>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <set-field>\r
+                        <ipv4-destination>10.2.3.4</ipv4-destination>\r
+                    </set-field>\r
+                </action>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <match>\r
+        <ethernet-match>\r
+            <ethernet-type>\r
+                <type>2048</type>\r
+            </ethernet-type>\r
+        </ethernet-match>\r
+        <ipv4-source>10.1.2.3/24</ipv4-source>\r
+        <ipv4-destination>20.4.5.6/16</ipv4-destination>\r
+               <ip-match>\r
+            <ip-protocol>56</ip-protocol>\r
+            <ip-ecn>1</ip-ecn>\r
+        </ip-match>\r
+    </match>\r
+</flow>\r
diff --git a/test-scripts/xmls/f211.xml b/test-scripts/xmls/f211.xml
new file mode 100644 (file)
index 0000000..7750e72
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <flow-name>set-field-ipv4-src</flow-name>\r
+    <id>256</id>\r
+    <cookie_mask>255</cookie_mask>\r
+    <cookie>101</cookie>\r
+    <table_id>2</table_id>\r
+    <priority>2</priority>\r
+    <hard-timeout>1200</hard-timeout>\r
+    <idle-timeout>3400</idle-timeout>\r
+    <installHw>false</installHw>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <set-field>\r
+                       <ipv4-source>20.1.2.3</ipv4-source>\r
+                    </set-field>\r
+                </action>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <match>\r
+        <ethernet-match>\r
+            <ethernet-type>\r
+                <type>2048</type>\r
+            </ethernet-type>\r
+        </ethernet-match>\r
+        <ipv4-source>10.1.2.3/24</ipv4-source>\r
+        <ipv4-destination>20.4.5.6/16</ipv4-destination>\r
+               <ip-match>\r
+            <ip-protocol>56</ip-protocol>\r
+            <ip-ecn>1</ip-ecn>\r
+        </ip-match>\r
+    </match>\r
+</flow>\r
diff --git a/test-scripts/xmls/f212.xml b/test-scripts/xmls/f212.xml
new file mode 100644 (file)
index 0000000..95e1532
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<flow xmlns="urn:opendaylight:flow:inventory">
+    <strict>false</strict>
+    <flow-name>set-field-ip-protocol</flow-name>
+    <id>256</id>
+    <cookie_mask>255</cookie_mask>
+    <cookie>101</cookie>
+    <table_id>2</table_id>
+    <priority>2</priority>
+    <hard-timeout>1200</hard-timeout>
+    <idle-timeout>3400</idle-timeout>
+    <installHw>false</installHw>
+    <instructions>
+        <instruction>
+            <order>0</order>
+            <apply-actions>
+                <action>
+                    <order>0</order>
+                    <set-field>
+                   <ip-match>
+                       <ip-protocol>6</ip-protocol>
+                   </ip-match>
+                    </set-field>
+                </action>
+            </apply-actions>
+        </instruction>
+    </instructions>
+    <match>
+        <ethernet-match>
+            <ethernet-type>
+                <type>2048</type>
+            </ethernet-type>
+        </ethernet-match>
+        <ipv4-source>10.1.2.3/24</ipv4-source>
+        <ipv4-destination>20.4.5.6/16</ipv4-destination>
+               <ip-match>
+            <ip-protocol>56</ip-protocol>
+            <ip-dscp>60</ip-dscp> 
+           <ip-ecn>1</ip-ecn>
+        </ip-match>
+    </match>
+</flow>
diff --git a/test-scripts/xmls/f213.xml b/test-scripts/xmls/f213.xml
new file mode 100644 (file)
index 0000000..a632f3b
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <flow-name>set-field-ip-dscp</flow-name>\r
+    <id>256</id>\r
+    <cookie_mask>255</cookie_mask>\r
+    <cookie>101</cookie>\r
+    <table_id>2</table_id>\r
+    <priority>2</priority>\r
+    <hard-timeout>1200</hard-timeout>\r
+    <idle-timeout>3400</idle-timeout>\r
+    <installHw>false</installHw>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <set-field>\r
+                   <ip-match>\r
+                       <ip-dscp>8</ip-dscp>\r
+                   </ip-match>\r
+                    </set-field>\r
+                </actin>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <match>\r
+        <ethernet-match>\r
+            <ethernet-type>\r
+                <type>2048</type>\r
+            </ethernet-type>\r
+        </ethernet-match>\r
+        <ipv4-source>10.1.2.3/24</ipv4-source>\r
+        <ipv4-destination>20.4.5.6/16</ipv4-destination>\r
+               <ip-match>\r
+            <ip-protocol>56</ip-protocol>\r
+            <ip-dscp>60</ip-dscp> \r
+           <ip-ecn>1</ip-ecn>\r
+        </ip-match>\r
+    </match>\r
+</flow>\r
diff --git a/test-scripts/xmls/f214.xml b/test-scripts/xmls/f214.xml
new file mode 100644 (file)
index 0000000..5b236a7
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <flow-name>set-field-ip-ecn</flow-name>\r
+    <id>256</id>\r
+    <cookie_mask>255</cookie_mask>\r
+    <cookie>101</cookie>\r
+    <table_id>2</table_id>\r
+    <priority>2</priority>\r
+    <hard-timeout>1200</hard-timeout>\r
+    <idle-timeout>3400</idle-timeout>\r
+    <installHw>false</installHw>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <set-field>\r
+                   <ip-match>\r
+                       <ip-ecn>2</ip-ecn>\r
+                   </ip-match>\r
+                    </set-field>\r
+                </action>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <match>\r
+        <ethernet-match>\r
+            <ethernet-type>\r
+                <type>2048</type>\r
+            </ethernet-type>\r
+        </ethernet-match>\r
+        <ipv4-source>10.1.2.3/24</ipv4-source>\r
+        <ipv4-destination>20.4.5.6/16</ipv4-destination>\r
+               <ip-match>\r
+            <ip-protocol>56</ip-protocol>\r
+            <ip-dscp>60</ip-dscp> \r
+           <ip-ecn>1</ip-ecn>\r
+        </ip-match>\r
+    </match>\r
+</flow>\r
diff --git a/test-scripts/xmls/f215.xml b/test-scripts/xmls/f215.xml
new file mode 100644 (file)
index 0000000..fe8c1b8
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow \r
+    xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <push-pbb-action>\r
+                        <ethernet-type>35047</ethernet-type>\r
+                    </push-pbb-action>\r
+                </action>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>172</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <vlan-match>\r
+            <vlan-id>\r
+                <vlan-id>10</vlan-id>\r
+                <vlan-id-present>true</vlan-id-present>\r
+            </vlan-id>\r
+            <vlan-pcp>3</vlan-pcp>\r
+        </vlan-match>\r
+    </match>\r
+    <hard-timeout>0</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>0</idle-timeout>\r
+    <flow-name>flow-instruction-apply-actions-push-pbb</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f216.xml b/test-scripts/xmls/f216.xml
new file mode 100644 (file)
index 0000000..0133f50
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow \r
+    xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <pop-pbb-action/>\r
+                </action>\r
+            </apply-actions>\r
+        </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>172</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <vlan-match>\r
+            <vlan-id>\r
+                <vlan-id>10</vlan-id>\r
+                <vlan-id-present>true</vlan-id-present>\r
+            </vlan-id>\r
+            <vlan-pcp>3</vlan-pcp>\r
+        </vlan-match>\r
+    </match>\r
+    <hard-timeout>0</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>0</idle-timeout>\r
+    <flow-name>flow-instruction-apply-actions-pop-pbb</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f217.xml b/test-scripts/xmls/f217.xml
new file mode 100644 (file)
index 0000000..54270c2
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow \r
+    xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+            <meter>\r
+                <meter-id>1</meter-id>\r
+            </meter>\r
+        </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>172</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <vlan-match>\r
+            <vlan-id>\r
+                <vlan-id>10</vlan-id>\r
+                <vlan-id-present>true</vlan-id-present>\r
+            </vlan-id>\r
+            <vlan-pcp>3</vlan-pcp>\r
+        </vlan-match>\r
+    </match>\r
+    <hard-timeout>0</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>0</idle-timeout>\r
+    <flow-name>flow-instruction-meter-id</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f218.xml b/test-scripts/xmls/f218.xml
new file mode 100644 (file)
index 0000000..8779e6c
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+                    <order>0</order>\r
+            <go-to-table>\r
+                <table_id>3</table_id>\r
+            </go-to-table>\r
+        </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>171</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <tunnel>\r
+            <tunnel-mask>6B6f7d120c</tunnel-mask>\r
+            <tunnel-id>10668</tunnel-id>\r
+        </tunnel>\r
+    </match>\r
+    <hard-timeout>12</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>34</idle-timeout>\r
+    <flow-name>flow-instruction-go-to-table</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f219.xml b/test-scripts/xmls/f219.xml
new file mode 100644 (file)
index 0000000..01acbe3
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+               <order>0</order>\r
+               <clear-actions>\r
+               <action>\r
+                    <order>0</order>\r
+                    <output-action>\r
+                        <output-node-connector>INPORT</output-node-connector>\r
+                        <max-length>60</max-length>\r
+                    </output-action>\r
+                </action>\r
+               </clear-actions>\r
+       </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>172</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <vlan-match>\r
+            <vlan-id>\r
+                <vlan-id>10</vlan-id>\r
+                <vlan-id-present>true</vlan-id-present>\r
+            </vlan-id>\r
+            <vlan-pcp>3</vlan-pcp>\r
+        </vlan-match>\r
+    </match>\r
+    <hard-timeout>0</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>0</idle-timeout>\r
+    <flow-name>flow-instruction-clear-actions</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f220.xml b/test-scripts/xmls/f220.xml
new file mode 100644 (file)
index 0000000..ad82260
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+                    <order>0</order>\r
+            <write-metadata>\r
+                <metadata-mask>12</metadata-mask>\r
+                <metadata>10</metadata>\r
+            </write-metadata>\r
+        </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>150</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <ethernet-match>\r
+            <ethernet-type>\r
+                <type>2048</type>\r
+            </ethernet-type>\r
+        </ethernet-match>\r
+        <ipv4-destination>10.0.0.1/24</ipv4-destination>\r
+    </match>\r
+    <hard-timeout>12</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>34</idle-timeout>\r
+    <flow-name>flow-instruction-write-metadata</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r
diff --git a/test-scripts/xmls/f221.xml b/test-scripts/xmls/f221.xml
new file mode 100644 (file)
index 0000000..0bed300
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<flow xmlns="urn:opendaylight:flow:inventory">\r
+    <strict>false</strict>\r
+    <instructions>\r
+        <instruction>\r
+            <order>0</order>\r
+           <write-actions>\r
+               <action>\r
+                    <order>0</order>\r
+                   <dec-mpls-ttl/>\r
+                </action>\r
+           </write-actions>\r
+            <apply-actions>\r
+                <action>\r
+                    <order>0</order>\r
+                    <output-action>\r
+                        <output-node-connector>1</output-node-connector>\r
+                        <max-length>60</max-length>\r
+                    </output-action>\r
+                </action>\r
+            </apply-actions>\r
+       </instruction>\r
+    </instructions>\r
+    <table_id>2</table_id>\r
+    <id>172</id>\r
+    <cookie_mask>10</cookie_mask>\r
+    <out_port>10</out_port>\r
+    <installHw>false</installHw>\r
+    <out_group>2</out_group>\r
+    <match>\r
+        <vlan-match>\r
+            <vlan-id>\r
+                <vlan-id>10</vlan-id>\r
+                <vlan-id-present>true</vlan-id-present>\r
+            </vlan-id>\r
+            <vlan-pcp>3</vlan-pcp>\r
+        </vlan-match>\r
+    </match>\r
+    <hard-timeout>0</hard-timeout>\r
+    <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>\r
+    <cookie>10</cookie>\r
+    <idle-timeout>0</idle-timeout>\r
+    <flow-name>flow-instruction-write-actions</flow-name>\r
+    <priority>2</priority>\r
+    <barrier>false</barrier>\r
+</flow>\r