1 [[odl-ofp-example-flows_overview]]
4 The flow examples on this page are tested to work with OVS.
6 Use, for example, POSTMAN with the following parameters:
8 ---------------------------------------------------------------------------------------------------------------------
9 PUT http://<ctrl-addr>:8080/restconf/config/opendaylight-inventory:nodes/node/<Node-id>/table/<Table-#>/flow/<Flow-#>
11 - Accept: application/xml
12 - Content-Type: application/xml
13 ---------------------------------------------------------------------------------------------------------------------
17 -------------------------------------------------------------------------------------------------------
18 PUT http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/127
19 -------------------------------------------------------------------------------------------------------
21 Make sure that the Table-# and Flow-# in the URL and in the XML match.
23 The format of the flow-programming XML is determined by by the grouping
24 'flow' in the opendaylight-flow-types yang model: MISSING LINK.
29 The format of the XML that describes OpenFlow matches is determined by
30 the opendaylight-match-types yang model: .
32 The RESTCONF documentation for the match-types yang model can be found
34 https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/opendaylight/md-sal/model/model-flow-base/target/site/models/opendaylight-match-types.html[opendaylight-match-types.html]
37 ===== IPv4 Dest Address
39 * Flow=124, Table=2, Priority=2,
40 Instructions=\{Apply_Actions=\{dec_nw_ttl}},
41 match=\{ipv4_destination_address=10.0.1.1/24}
42 * Note that ethernet-type MUST be 2048 (0x800)
45 --------------------------------------------------------
46 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
47 <flow xmlns="urn:opendaylight:flow:inventory">
48 <strict>false</strict>
60 <table_id>2</table_id>
62 <cookie_mask>255</cookie_mask>
63 <installHw>false</installHw>
70 <ipv4-destination>10.0.1.1/24</ipv4-destination>
72 <hard-timeout>12</hard-timeout>
74 <idle-timeout>34</idle-timeout>
75 <flow-name>FooXf1</flow-name>
76 <priority>2</priority>
77 <barrier>false</barrier>
79 --------------------------------------------------------
81 [[ethernet-src-address]]
82 ===== Ethernet Src Address
84 * Flow=126, Table=2, Priority=2, Instructions=\{Apply_Actions=\{drop}},
85 match=\{ethernet-source=00:00:00:00:00:01}
88 ------------------------------------------------------
89 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
90 <flow xmlns="urn:opendaylight:flow:inventory">
91 <strict>false</strict>
103 <table_id>2</table_id>
105 <cookie_mask>255</cookie_mask>
106 <installHw>false</installHw>
110 <address>00:00:00:00:00:01</address>
114 <hard-timeout>12</hard-timeout>
116 <idle-timeout>34</idle-timeout>
117 <flow-name>FooXf3</flow-name>
118 <priority>2</priority>
119 <barrier>false</barrier>
121 ------------------------------------------------------
123 [[ethernet-src-dest-addresses-ethernet-type]]
124 ===== Ethernet Src & Dest Addresses, Ethernet Type
126 * Flow=127, Table=2, Priority=2, Instructions=\{Apply_Actions=\{drop}},
127 match=\{ethernet-source=00:00:00:00:23:ae,
128 ethernet-destination=ff:ff:ff:ff:ff:ff, ethernet-type=45}
131 ------------------------------------------------------
132 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
133 <flow xmlns="urn:opendaylight:flow:inventory">
134 <strict>false</strict>
146 <table_id>2</table_id>
148 <cookie_mask>255</cookie_mask>
149 <installHw>false</installHw>
155 <ethernet-destination>
156 <address>ff:ff:ff:ff:ff:ff</address>
157 </ethernet-destination>
159 <address>00:00:00:00:23:ae</address>
163 <hard-timeout>12</hard-timeout>
165 <idle-timeout>34</idle-timeout>
166 <flow-name>FooXf4</flow-name>
167 <priority>2</priority>
168 <barrier>false</barrier>
170 ------------------------------------------------------
172 [[ethernet-src-dest-addresses-ipv4-src-dest-addresses-input-port]]
173 ===== Ethernet Src & Dest Addresses, IPv4 Src & Dest Addresses, Input Port
175 * Note that ethernet-type MUST be 34887 (0x8847)
178 --------------------------------------------------------
179 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
180 <flow xmlns="urn:opendaylight:flow:inventory">
181 <strict>false</strict>
193 <table_id>2</table_id>
195 <cookie_mask>255</cookie_mask>
201 <ethernet-destination>
202 <address>ff:ff:ff:ff:ff:ff</address>
203 </ethernet-destination>
205 <address>00:00:00:00:23:ae</address>
208 <ipv4-source>10.1.2.3/24</ipv4-source>
209 <ipv4-destination>20.4.5.6/16</ipv4-destination>
212 <hard-timeout>12</hard-timeout>
214 <idle-timeout>34</idle-timeout>
215 <flow-name>FooXf5</flow-name>
216 <priority>2</priority>
217 <barrier>false</barrier>
219 --------------------------------------------------------
221 [[ethernet-src-dest-addresses-ipv4-src-dest-addresses-ip-protocol-ip-dscp-ip-ecn-input-port]]
222 ===== Ethernet Src & Dest Addresses, IPv4 Src & Dest Addresses, IP
223 Protocol #, IP DSCP, IP ECN, Input Port
225 * Note that ethernet-type MUST be 2048 (0x800)
228 --------------------------------------------------------
229 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
230 <flow xmlns="urn:opendaylight:flow:inventory">
231 <strict>false</strict>
243 <table_id>2</table_id>
245 <cookie_mask>255</cookie_mask>
251 <ethernet-destination>
252 <address>ff:ff:ff:ff:ff:aa</address>
253 </ethernet-destination>
255 <address>00:00:00:11:23:ae</address>
258 <ipv4-source>10.1.2.3/24</ipv4-source>
259 <ipv4-destination>20.4.5.6/16</ipv4-destination>
261 <ip-protocol>56</ip-protocol>
262 <ip-dscp>15</ip-dscp>
267 <hard-timeout>12000</hard-timeout>
269 <idle-timeout>12000</idle-timeout>
270 <flow-name>FooXf7</flow-name>
271 <priority>2</priority>
272 <barrier>false</barrier>
274 --------------------------------------------------------
276 [[ethernet-src-dest-addresses-ipv4-src-dest-addresses-tcp-src-dest-ports-ip-dscp-ip-ecn-input-port]]
277 ===== Ethernet Src & Dest Addresses, IPv4 Src & Dest Addresses, TCP Src &
278 Dest Ports, IP DSCP, IP ECN, Input Port
280 * Note that ethernet-type MUST be 2048 (0x800)
281 * Note that IP Protocol Type MUST be 6
284 -----------------------------------------------------------
285 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
286 <flow xmlns="urn:opendaylight:flow:inventory">
287 <strict>false</strict>
299 <table_id>2</table_id>
301 <cookie_mask>255</cookie_mask>
307 <ethernet-destination>
308 <address>ff:ff:29:01:19:61</address>
309 </ethernet-destination>
311 <address>00:00:00:11:23:ae</address>
314 <ipv4-source>17.1.2.3/8</ipv4-source>
315 <ipv4-destination>172.168.5.6/16</ipv4-destination>
317 <ip-protocol>6</ip-protocol>
321 <tcp-source-port>25364</tcp-source-port>
322 <tcp-destination-port>8080</tcp-destination-port>
325 <hard-timeout>1200</hard-timeout>
327 <idle-timeout>3400</idle-timeout>
328 <flow-name>FooXf8</flow-name>
329 <priority>2</priority>
330 <barrier>false</barrier>
332 -----------------------------------------------------------
334 [[ethernet-src-dest-addresses-ipv4-src-dest-addresses-udp-src-dest-ports-ip-dscp-ip-ecn-input-port]]
335 ===== Ethernet Src & Dest Addresses, IPv4 Src & Dest Addresses, UDP Src &
336 Dest Ports, IP DSCP, IP ECN, Input Port
338 * Note that ethernet-type MUST be 2048 (0x800)
339 * Note that IP Protocol Type MUST be 17
342 -----------------------------------------------------------
343 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
344 <flow xmlns="urn:opendaylight:flow:inventory">
345 <strict>false</strict>
357 <table_id>2</table_id>
359 <cookie_mask>255</cookie_mask>
365 <ethernet-destination>
366 <address>20:14:29:01:19:61</address>
367 </ethernet-destination>
369 <address>00:00:00:11:23:ae</address>
372 <ipv4-source>19.1.2.3/10</ipv4-source>
373 <ipv4-destination>172.168.5.6/18</ipv4-destination>
375 <ip-protocol>17</ip-protocol>
379 <udp-source-port>25364</udp-source-port>
380 <udp-destination-port>8080</udp-destination-port>
383 <hard-timeout>1200</hard-timeout>
385 <idle-timeout>3400</idle-timeout>
386 <flow-name>FooXf9</flow-name>
387 <priority>2</priority>
388 <barrier>false</barrier>
389 -----------------------------------------------------------
391 [[ethernet-src-dest-addresses-ipv4-src-dest-addresses-icmpv4-type-code-ip-dscp-ip-ecn-input-port]]
392 ===== Ethernet Src & Dest Addresses, IPv4 Src & Dest Addresses, ICMPv4
393 Type & Code, IP DSCP, IP ECN, Input Port
395 * Note that ethernet-type MUST be 2048 (0x800)
396 * Note that IP Protocol Type MUST be 1
399 -----------------------------------------------------------
400 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
401 <flow xmlns="urn:opendaylight:flow:inventory">
402 <strict>false</strict>
414 <table_id>2</table_id>
416 <cookie_mask>255</cookie_mask>
422 <ethernet-destination>
423 <address>ff:ff:29:01:19:61</address>
424 </ethernet-destination>
426 <address>00:00:00:11:23:ae</address>
429 <ipv4-source>17.1.2.3/8</ipv4-source>
430 <ipv4-destination>172.168.5.6/16</ipv4-destination>
432 <ip-protocol>1</ip-protocol>
433 <ip-dscp>27</ip-dscp>
437 <icmpv4-type>6</icmpv4-type>
438 <icmpv4-code>3</icmpv4-code>
442 <hard-timeout>1200</hard-timeout>
444 <idle-timeout>3400</idle-timeout>
445 <flow-name>FooXf11</flow-name>
446 <priority>2</priority>
448 -----------------------------------------------------------
450 [[ethernet-src-dest-addresses-arp-operation-arp-src-target-transport-addresses-arp-src-target-hw-addresses]]
451 ===== Ethernet Src & Dest Addresses, ARP Operation, ARP Src & Target
452 Transport Addresses, ARP Src & Target Hw Addresses
454 * Note that ethernet-type MUST be 2054 (0x806)
457 --------------------------------------------------------------------------------
458 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
459 <flow xmlns="urn:opendaylight:flow:inventory">
460 <strict>false</strict>
476 <table_id>2</table_id>
478 <cookie_mask>255</cookie_mask>
484 <ethernet-destination>
485 <address>ff:ff:ff:ff:FF:ff</address>
486 </ethernet-destination>
488 <address>00:00:FC:01:23:ae</address>
492 <arp-source-transport-address>192.168.4.1</arp-source-transport-address>
493 <arp-target-transport-address>10.21.22.23</arp-target-transport-address>
494 <arp-source-hardware-address>
495 <address>12:34:56:78:98:AB</address>
496 </arp-source-hardware-address>
497 <arp-target-hardware-address>
498 <address>FE:DC:BA:98:76:54</address>
499 </arp-target-hardware-address>
501 <hard-timeout>12</hard-timeout>
503 <idle-timeout>34</idle-timeout>
504 <flow-name>FooXf14</flow-name>
505 <priority>2</priority>
506 <barrier>false</barrier>
507 --------------------------------------------------------------------------------
509 [[ethernet-src-dest-addresses-ethernet-type-vlan-id-vlan-pcp]]
510 ===== Ethernet Src & Dest Addresses, Ethernet Type, VLAN ID, VLAN PCP
513 -------------------------------------------------------
514 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
515 <flow xmlns="urn:opendaylight:flow:inventory">
516 <strict>false</strict>
528 <table_id>2</table_id>
530 <cookie_mask>255</cookie_mask>
536 <ethernet-destination>
537 <address>ff:ff:29:01:19:61</address>
538 </ethernet-destination>
540 <address>00:00:00:11:23:ae</address>
545 <vlan-id>78</vlan-id>
546 <vlan-id-present>true</vlan-id-present>
548 <vlan-pcp>3</vlan-pcp>
551 <hard-timeout>1200</hard-timeout>
553 <idle-timeout>3400</idle-timeout>
554 <flow-name>FooXf15</flow-name>
555 <priority>2</priority>
556 <barrier>false</barrier>
558 -------------------------------------------------------
560 [[ethernet-src-dest-addresses-mpls-label-mpls-tc-mpls-bos]]
561 ===== Ethernet Src & Dest Addresses, MPLS Label, MPLS TC, MPLS BoS
564 ------------------------------------------------------
565 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
566 <flow xmlns="urn:opendaylight:flow:inventory">
567 <flow-name>FooXf17</flow-name>
569 <cookie_mask>255</cookie_mask>
571 <hard-timeout>1200</hard-timeout>
572 <idle-timeout>3400</idle-timeout>
573 <priority>2</priority>
574 <table_id>2</table_id>
575 <strict>false</strict>
592 <ethernet-destination>
593 <address>ff:ff:29:01:19:61</address>
594 </ethernet-destination>
596 <address>00:00:00:11:23:ae</address>
599 <protocol-match-fields>
600 <mpls-label>567</mpls-label>
602 <mpls-bos>1</mpls-bos>
603 </protocol-match-fields>
606 ------------------------------------------------------
608 [[ipv6-src-dest-addresses]]
609 ===== IPv6 Src & Dest Addresses
611 * Note that ethernet-type MUST be 34525
614 ------------------------------------------------------------------------------
615 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
616 <flow xmlns="urn:opendaylight:flow:inventory">
617 <strict>false</strict>
618 <flow-name>FooXf18</flow-name>
620 <cookie_mask>255</cookie_mask>
622 <table_id>2</table_id>
623 <priority>2</priority>
624 <hard-timeout>1200</hard-timeout>
625 <idle-timeout>3400</idle-timeout>
626 <installHw>false</installHw>
644 <ipv6-source>fe80::2acf:e9ff:fe21:6431/128</ipv6-source>
645 <ipv6-destination>aabb:1234:2acf:e9ff::fe21:6431/64</ipv6-destination>
648 ------------------------------------------------------------------------------
654 ------------------------------------------------------
655 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
656 <flow xmlns="urn:opendaylight:flow:inventory">
657 <strict>false</strict>
658 <flow-name>FooXf19</flow-name>
660 <cookie_mask>255</cookie_mask>
662 <table_id>2</table_id>
663 <priority>1</priority>
664 <hard-timeout>1200</hard-timeout>
665 <idle-timeout>3400</idle-timeout>
666 <installHw>false</installHw>
680 <metadata>12345</metadata>
684 ------------------------------------------------------
686 [[metadata-metadata-mask]]
687 ===== Metadata, Metadata Mask
690 ------------------------------------------------------
691 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
692 <flow xmlns="urn:opendaylight:flow:inventory">
693 <strict>false</strict>
694 <flow-name>FooXf20</flow-name>
696 <cookie_mask>255</cookie_mask>
698 <table_id>2</table_id>
699 <priority>2</priority>
700 <hard-timeout>1200</hard-timeout>
701 <idle-timeout>3400</idle-timeout>
702 <installHw>false</installHw>
716 <metadata>12345</metadata>
717 <metadata-mask>//FF</metadata-mask>
721 ------------------------------------------------------
723 [[ipv6-src-dest-addresses-metadata-ip-dscp-ip-ecn-udp-src-dest-ports]]
724 ===== IPv6 Src & Dest Addresses, Metadata, IP DSCP, IP ECN, UDP Src & Dest Ports
726 * Note that ethernet-type MUST be 34525
729 -----------------------------------------------------------------------------
730 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
731 <flow xmlns="urn:opendaylight:flow:inventory">
732 <strict>false</strict>
733 <flow-name>FooXf21</flow-name>
735 <cookie_mask>255</cookie_mask>
737 <table_id>2</table_id>
738 <priority>2</priority>
739 <hard-timeout>1200</hard-timeout>
740 <idle-timeout>3400</idle-timeout>
741 <installHw>false</installHw>
759 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
760 <ipv6-destination>fe80::2acf:e9ff:fe21:6431/128</ipv6-destination>
762 <metadata>12345</metadata>
765 <ip-protocol>17</ip-protocol>
769 <udp-source-port>25364</udp-source-port>
770 <udp-destination-port>8080</udp-destination-port>
773 -----------------------------------------------------------------------------
775 [[ipv6-src-dest-addresses-metadata-ip-dscp-ip-ecn-tcp-src-dest-ports]]
776 ===== IPv6 Src & Dest Addresses, Metadata, IP DSCP, IP ECN, TCP Src & Dest Ports
778 * Note that ethernet-type MUST be 34525
779 * Note that IP Protocol MUST be 6
782 -----------------------------------------------------------------------------
783 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
784 <flow xmlns="urn:opendaylight:flow:inventory">
785 <strict>false</strict>
786 <flow-name>FooXf22</flow-name>
788 <cookie_mask>255</cookie_mask>
790 <table_id>2</table_id>
791 <priority>2</priority>
792 <hard-timeout>1200</hard-timeout>
793 <idle-timeout>3400</idle-timeout>
794 <installHw>false</installHw>
812 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
813 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
815 <metadata>12345</metadata>
818 <ip-protocol>6</ip-protocol>
819 <ip-dscp>60</ip-dscp>
822 <tcp-source-port>183</tcp-source-port>
823 <tcp-destination-port>8080</tcp-destination-port>
826 -----------------------------------------------------------------------------
828 [[ipv6-src-dest-addresses-metadata-ip-dscp-ip-ecn-tcp-src-dest-ports-ipv6-label]]
829 ===== IPv6 Src & Dest Addresses, Metadata, IP DSCP, IP ECN, TCP Src & Dest Ports, IPv6 Label
831 * Note that ethernet-type MUST be 34525
832 * Note that IP Protocol MUST be 6
835 -----------------------------------------------------------------------------
836 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
837 <flow xmlns="urn:opendaylight:flow:inventory">
838 <strict>false</strict>
839 <flow-name>FooXf23</flow-name>
841 <cookie_mask>255</cookie_mask>
843 <table_id>2</table_id>
844 <priority>2</priority>
845 <hard-timeout>1200</hard-timeout>
846 <idle-timeout>3400</idle-timeout>
847 <installHw>false</installHw>
865 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
866 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
868 <metadata>12345</metadata>
871 <ipv6-flabel>33</ipv6-flabel>
874 <ip-protocol>6</ip-protocol>
875 <ip-dscp>60</ip-dscp>
878 <tcp-source-port>183</tcp-source-port>
879 <tcp-destination-port>8080</tcp-destination-port>
882 -----------------------------------------------------------------------------
888 ------------------------------------------------------
889 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
890 <flow xmlns="urn:opendaylight:flow:inventory">
891 <strict>false</strict>
892 <flow-name>FooXf24</flow-name>
894 <cookie_mask>255</cookie_mask>
896 <table_id>2</table_id>
897 <priority>2</priority>
898 <hard-timeout>1200</hard-timeout>
899 <idle-timeout>3400</idle-timeout>
900 <installHw>false</installHw>
914 <tunnel-id>2591</tunnel-id>
918 ------------------------------------------------------
920 [[ipv6-src-dest-addresses-metadata-ip-dscp-ip-ecn-icmpv6-type-code-ipv6-label]]
921 ===== IPv6 Src & Dest Addresses, Metadata, IP DSCP, IP ECN, ICMPv6 Type & Code, IPv6 Label
923 * Note that ethernet-type MUST be 34525
924 * Note that IP Protocol MUST be 58
927 -----------------------------------------------------------------------------
928 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
929 <flow xmlns="urn:opendaylight:flow:inventory">
930 <strict>false</strict>
931 <flow-name>FooXf25</flow-name>
933 <cookie_mask>255</cookie_mask>
935 <table_id>2</table_id>
936 <priority>2</priority>
937 <hard-timeout>1200</hard-timeout>
938 <idle-timeout>3400</idle-timeout>
939 <installHw>false</installHw>
957 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
958 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
960 <metadata>12345</metadata>
963 <ipv6-flabel>33</ipv6-flabel>
966 <ip-protocol>58</ip-protocol>
967 <ip-dscp>60</ip-dscp>
971 <icmpv6-type>6</icmpv6-type>
972 <icmpv6-code>3</icmpv6-code>
976 -----------------------------------------------------------------------------
978 [[ipv6-src-dest-addresses-metadata-ip-dscp-ip-ecn-tcp-src-dst-ports-ipv6-label-ipv6-ext-header]]
979 ===== IPv6 Src & Dest Addresses, Metadata, IP DSCP, IP ECN, TCP Src & Dst Ports, IPv6 Label, IPv6 Ext Header
981 * Note that ethernet-type MUST be 34525
982 * Note that IP Protocol MUST be 58
985 -----------------------------------------------------------------------------
986 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
987 <flow xmlns="urn:opendaylight:flow:inventory">
988 <strict>false</strict>
989 <flow-name>FooXf27</flow-name>
991 <cookie_mask>255</cookie_mask>
993 <table_id>2</table_id>
994 <priority>2</priority>
995 <hard-timeout>1200</hard-timeout>
996 <idle-timeout>3400</idle-timeout>
997 <installHw>false</installHw>
1015 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
1016 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
1018 <metadata>12345</metadata>
1021 <ipv6-flabel>33</ipv6-flabel>
1024 <ipv6-exthdr>0</ipv6-exthdr>
1027 <ip-protocol>6</ip-protocol>
1028 <ip-dscp>60</ip-dscp>
1031 <tcp-source-port>183</tcp-source-port>
1032 <tcp-destination-port>8080</tcp-destination-port>
1035 -----------------------------------------------------------------------------
1040 The format of the XML that describes OpenFlow actions is determined by
1041 the opendaylight-action-types yang model: .
1043 The RESTCONF documentation for the match-types yang model can be found
1045 https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/opendaylight/md-sal/model/model-flow-base/target/site/models/opendaylight-action-types.html[opendaylight-action-types.html]
1051 ====== Output to TABLE
1054 -----------------------------------------------------------------------------
1055 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1056 <flow xmlns="urn:opendaylight:flow:inventory">
1057 <strict>false</strict>
1058 <flow-name>FooXf101</flow-name>
1060 <cookie_mask>255</cookie_mask>
1061 <cookie>101</cookie>
1062 <table_id>2</table_id>
1063 <priority>2</priority>
1064 <hard-timeout>1200</hard-timeout>
1065 <idle-timeout>3400</idle-timeout>
1066 <installHw>false</installHw>
1074 <output-node-connector>TABLE</output-node-connector>
1075 <max-length>60</max-length>
1087 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
1088 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
1090 <metadata>12345</metadata>
1093 <ip-protocol>6</ip-protocol>
1094 <ip-dscp>60</ip-dscp>
1097 <tcp-source-port>183</tcp-source-port>
1098 <tcp-destination-port>8080</tcp-destination-port>
1101 -----------------------------------------------------------------------------
1103 [[output-to-inport]]
1104 ====== Output to INPORT
1107 -----------------------------------------------------------------------------
1108 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1109 <flow xmlns="urn:opendaylight:flow:inventory">
1110 <strict>false</strict>
1111 <flow-name>FooXf102</flow-name>
1113 <cookie_mask>255</cookie_mask>
1114 <cookie>102</cookie>
1115 <table_id>2</table_id>
1116 <priority>2</priority>
1117 <hard-timeout>1200</hard-timeout>
1118 <idle-timeout>3400</idle-timeout>
1119 <installHw>false</installHw>
1127 <output-node-connector>INPORT</output-node-connector>
1128 <max-length>60</max-length>
1139 <ethernet-destination>
1140 <address>ff:ff:29:01:19:61</address>
1141 </ethernet-destination>
1143 <address>00:00:00:11:23:ae</address>
1146 <ipv4-source>17.1.2.3/8</ipv4-source>
1147 <ipv4-destination>172.168.5.6/16</ipv4-destination>
1149 <ip-protocol>6</ip-protocol>
1150 <ip-dscp>2</ip-dscp>
1153 <tcp-source-port>25364</tcp-source-port>
1154 <tcp-destination-port>8080</tcp-destination-port>
1157 -----------------------------------------------------------------------------
1159 [[output-to-physical-port]]
1160 ====== Output to Physical Port
1163 ------------------------------------------------------------------------
1164 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1165 <flow xmlns="urn:opendaylight:flow:inventory">
1166 <strict>false</strict>
1167 <flow-name>FooXf103</flow-name>
1169 <cookie_mask>255</cookie_mask>
1170 <cookie>103</cookie>
1171 <table_id>2</table_id>
1172 <priority>2</priority>
1173 <hard-timeout>1200</hard-timeout>
1174 <idle-timeout>3400</idle-timeout>
1175 <installHw>false</installHw>
1183 <output-node-connector>1</output-node-connector>
1184 <max-length>60</max-length>
1195 <ethernet-destination>
1196 <address>ff:ff:29:01:19:61</address>
1197 </ethernet-destination>
1199 <address>00:00:00:11:23:ae</address>
1202 <ipv4-source>17.1.2.3/8</ipv4-source>
1203 <ipv4-destination>172.168.5.6/16</ipv4-destination>
1205 <ip-protocol>6</ip-protocol>
1206 <ip-dscp>2</ip-dscp>
1209 <tcp-source-port>25364</tcp-source-port>
1210 <tcp-destination-port>8080</tcp-destination-port>
1213 ------------------------------------------------------------------------
1216 ====== Output to LOCAL
1219 -----------------------------------------------------------------------------
1220 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1221 <flow xmlns="urn:opendaylight:flow:inventory">
1222 <strict>false</strict>
1223 <flow-name>FooXf104</flow-name>
1225 <cookie_mask>255</cookie_mask>
1226 <cookie>104</cookie>
1227 <table_id>2</table_id>
1228 <priority>2</priority>
1229 <hard-timeout>1200</hard-timeout>
1230 <idle-timeout>3400</idle-timeout>
1231 <installHw>false</installHw>
1239 <output-node-connector>LOCAL</output-node-connector>
1240 <max-length>60</max-length>
1252 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/76</ipv6-source>
1253 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/94</ipv6-destination>
1255 <metadata>12345</metadata>
1258 <ip-protocol>6</ip-protocol>
1259 <ip-dscp>60</ip-dscp>
1262 <tcp-source-port>183</tcp-source-port>
1263 <tcp-destination-port>8080</tcp-destination-port>
1266 -----------------------------------------------------------------------------
1268 [[output-to-normal]]
1269 ====== Output to NORMAL
1272 -----------------------------------------------------------------------------
1273 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1274 <flow xmlns="urn:opendaylight:flow:inventory">
1275 <strict>false</strict>
1276 <flow-name>FooXf105</flow-name>
1278 <cookie_mask>255</cookie_mask>
1279 <cookie>105</cookie>
1280 <table_id>2</table_id>
1281 <priority>2</priority>
1282 <hard-timeout>1200</hard-timeout>
1283 <idle-timeout>3400</idle-timeout>
1284 <installHw>false</installHw>
1292 <output-node-connector>NORMAL</output-node-connector>
1293 <max-length>60</max-length>
1305 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/84</ipv6-source>
1306 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/90</ipv6-destination>
1308 <metadata>12345</metadata>
1311 <ip-protocol>6</ip-protocol>
1312 <ip-dscp>45</ip-dscp>
1315 <tcp-source-port>20345</tcp-source-port>
1316 <tcp-destination-port>80</tcp-destination-port>
1319 -----------------------------------------------------------------------------
1322 ====== Output to FLOOD
1325 ------------------------------------------------------------------------------
1326 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1327 <flow xmlns="urn:opendaylight:flow:inventory">
1328 <strict>false</strict>
1329 <flow-name>FooXf106</flow-name>
1331 <cookie_mask>255</cookie_mask>
1332 <cookie>106</cookie>
1333 <table_id>2</table_id>
1334 <priority>2</priority>
1335 <hard-timeout>1200</hard-timeout>
1336 <idle-timeout>3400</idle-timeout>
1337 <installHw>false</installHw>
1345 <output-node-connector>FLOOD</output-node-connector>
1346 <max-length>60</max-length>
1358 <ipv6-source>1234:5678:9ABC:DEF0:FDCD:A987:6543:210F/100</ipv6-source>
1359 <ipv6-destination>fe80:2acf:e9ff:fe21::6431/67</ipv6-destination>
1361 <metadata>12345</metadata>
1364 <ip-protocol>6</ip-protocol>
1365 <ip-dscp>45</ip-dscp>
1368 <tcp-source-port>20345</tcp-source-port>
1369 <tcp-destination-port>80</tcp-destination-port>
1372 ------------------------------------------------------------------------------
1375 ====== Output to ALL
1378 --------------------------------------------------------------------------
1379 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1380 <flow xmlns="urn:opendaylight:flow:inventory">
1381 <strict>false</strict>
1382 <flow-name>FooXf107</flow-name>
1384 <cookie_mask>255</cookie_mask>
1385 <cookie>107</cookie>
1386 <table_id>2</table_id>
1387 <priority>2</priority>
1388 <hard-timeout>1200</hard-timeout>
1389 <idle-timeout>3400</idle-timeout>
1390 <installHw>false</installHw>
1398 <output-node-connector>ALL</output-node-connector>
1399 <max-length>60</max-length>
1410 <ethernet-destination>
1411 <address>20:14:29:01:19:61</address>
1412 </ethernet-destination>
1414 <address>00:00:00:11:23:ae</address>
1417 <ipv4-source>19.1.2.3/10</ipv4-source>
1418 <ipv4-destination>172.168.5.6/18</ipv4-destination>
1420 <ip-protocol>17</ip-protocol>
1421 <ip-dscp>8</ip-dscp>
1424 <udp-source-port>25364</udp-source-port>
1425 <udp-destination-port>8080</udp-destination-port>
1426 <in-port>0</in-port>
1429 --------------------------------------------------------------------------
1431 [[output-to-controller]]
1432 ====== Output to CONTROLLER
1435 ---------------------------------------------------------------------------------
1436 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1437 <flow xmlns="urn:opendaylight:flow:inventory">
1438 <strict>false</strict>
1439 <flow-name>FooXf108</flow-name>
1441 <cookie_mask>255</cookie_mask>
1442 <cookie>108</cookie>
1443 <table_id>2</table_id>
1444 <priority>2</priority>
1445 <hard-timeout>1200</hard-timeout>
1446 <idle-timeout>3400</idle-timeout>
1447 <installHw>false</installHw>
1455 <output-node-connector>CONTROLLER</output-node-connector>
1456 <max-length>60</max-length>
1467 <ethernet-destination>
1468 <address>20:14:29:01:19:61</address>
1469 </ethernet-destination>
1471 <address>00:00:00:11:23:ae</address>
1474 <ipv4-source>19.1.2.3/10</ipv4-source>
1475 <ipv4-destination>172.168.5.6/18</ipv4-destination>
1477 <ip-protocol>17</ip-protocol>
1478 <ip-dscp>8</ip-dscp>
1481 <udp-source-port>25364</udp-source-port>
1482 <udp-destination-port>8080</udp-destination-port>
1483 <in-port>0</in-port>
1486 ---------------------------------------------------------------------------------
1489 ====== Output to ANY
1492 --------------------------------------------------------------------------
1493 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1494 <flow xmlns="urn:opendaylight:flow:inventory">
1495 <strict>false</strict>
1496 <flow-name>FooXf109</flow-name>
1498 <cookie_mask>255</cookie_mask>
1499 <cookie>109</cookie>
1500 <table_id>2</table_id>
1501 <priority>2</priority>
1502 <hard-timeout>1200</hard-timeout>
1503 <idle-timeout>3400</idle-timeout>
1504 <installHw>false</installHw>
1512 <output-node-connector>ANY</output-node-connector>
1513 <max-length>60</max-length>
1524 <ethernet-destination>
1525 <address>20:14:29:01:19:61</address>
1526 </ethernet-destination>
1528 <address>00:00:00:11:23:ae</address>
1531 <ipv4-source>19.1.2.3/10</ipv4-source>
1532 <ipv4-destination>172.168.5.6/18</ipv4-destination>
1534 <ip-protocol>17</ip-protocol>
1535 <ip-dscp>8</ip-dscp>
1538 <udp-source-port>25364</udp-source-port>
1539 <udp-destination-port>8080</udp-destination-port>
1540 <in-port>0</in-port>
1543 --------------------------------------------------------------------------
1550 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1551 <flow xmlns="urn:opendaylight:flow:inventory">
1552 <strict>false</strict>
1559 <ethernet-type>33024</ethernet-type>
1567 <vlan-id>79</vlan-id>
1568 <vlan-id-present>true</vlan-id-present>
1576 <output-node-connector>5</output-node-connector>
1583 <table_id>0</table_id>
1590 <ethernet-destination>
1591 <address>FF:FF:29:01:19:61</address>
1592 </ethernet-destination>
1594 <address>00:00:00:11:23:AE</address>
1597 <in-port>1</in-port>
1599 <flow-name>vlan_flow</flow-name>
1600 <priority>2</priority>
1608 ------------------------------------------------------------------------
1609 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1611 xmlns="urn:opendaylight:flow:inventory">
1612 <flow-name>push-mpls-action</flow-name>
1619 <ethernet-type>34887</ethernet-type>
1625 <protocol-match-fields>
1626 <mpls-label>27</mpls-label>
1627 </protocol-match-fields>
1633 <output-node-connector>2</output-node-connector>
1640 <strict>false</strict>
1648 <in-port>1</in-port>
1649 <ipv4-destination>10.0.0.4/32</ipv4-destination>
1651 <idle-timeout>0</idle-timeout>
1652 <cookie_mask>255</cookie_mask>
1653 <cookie>401</cookie>
1654 <priority>8</priority>
1655 <hard-timeout>0</hard-timeout>
1656 <installHw>false</installHw>
1657 <table_id>0</table_id>
1659 ------------------------------------------------------------------------
1664 * Note that ethernet-type MUST be 34887
1667 ------------------------------------------------------------------------
1668 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1670 xmlns="urn:opendaylight:flow:inventory">
1671 <flow-name>push-mpls-action</flow-name>
1678 <protocol-match-fields>
1679 <mpls-label>37</mpls-label>
1680 </protocol-match-fields>
1686 <output-node-connector>2</output-node-connector>
1693 <strict>false</strict>
1701 <in-port>1</in-port>
1702 <protocol-match-fields>
1703 <mpls-label>27</mpls-label>
1704 </protocol-match-fields>
1706 <idle-timeout>0</idle-timeout>
1707 <cookie_mask>255</cookie_mask>
1708 <cookie>401</cookie>
1709 <priority>8</priority>
1710 <hard-timeout>0</hard-timeout>
1711 <installHw>false</installHw>
1712 <table_id>0</table_id>
1714 ------------------------------------------------------------------------
1719 * Note that ethernet-type MUST be 34887
1720 * Issue with OVS 2.1
1721 http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b3f2fc93e3f357f8d05a92f53ec253339a40887f[OVS
1725 ------------------------------------------------------------------------
1726 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
1728 xmlns="urn:opendaylight:flow:inventory">
1729 <flow-name>FooXf10</flow-name>
1736 <ethernet-type>2048</ethernet-type>
1742 <output-node-connector>2</output-node-connector>
1743 <max-length>60</max-length>
1751 <strict>false</strict>
1758 <in-port>1</in-port>
1759 <protocol-match-fields>
1760 <mpls-label>37</mpls-label>
1761 </protocol-match-fields>
1763 <idle-timeout>0</idle-timeout>
1764 <cookie>889</cookie>
1765 <cookie_mask>255</cookie_mask>
1766 <installHw>false</installHw>
1767 <hard-timeout>0</hard-timeout>
1768 <priority>10</priority>
1769 <table_id>0</table_id>
1771 ------------------------------------------------------------------------
1775 * Nicira extension defined in https://github.com/osrg/openvswitch/blob/master/include/openflow/nicira-ext.h
1776 * Example section is - https://github.com/osrg/openvswitch/blob/master/include/openflow/nicira-ext.h#L788
1779 ------------------------------------------------------------------------
1781 <id>ICMP_Ingress258a5a5ad-08a8-4ff7-98f5-ef0b96ca3bb8</id>
1782 <hard-timeout>0</hard-timeout>
1783 <idle-timeout>0</idle-timeout>
1791 <metadata>2199023255552</metadata>
1792 <metadata-mask>2305841909702066176</metadata-mask>
1795 <ip-protocol>1</ip-protocol>
1798 <cookie>110100480</cookie>
1806 xmlns="urn:opendaylight:openflowplugin:extension:nicira:action">
1813 xmlns="urn:opendaylight:openflowplugin:extension:nicira:action">
1814 <idle-timeout>60</idle-timeout>
1815 <fin-idle-timeout>0</fin-idle-timeout>
1816 <hard-timeout>60</hard-timeout>
1818 <table-id>41</table-id>
1819 <priority>61010</priority>
1820 <fin-hard-timeout>0</fin-hard-timeout>
1822 <flow-mod-add-match-from-value>
1823 <src-ofs>0</src-ofs>
1825 <src-field>1538</src-field>
1826 <flow-mod-num-bits>16</flow-mod-num-bits>
1827 </flow-mod-add-match-from-value>
1830 <flow-mod-add-match-from-field>
1831 <src-ofs>0</src-ofs>
1832 <dst-ofs>0</dst-ofs>
1833 <dst-field>4100</dst-field>
1834 <src-field>3588</src-field>
1835 <flow-mod-num-bits>32</flow-mod-num-bits>
1836 </flow-mod-add-match-from-field>
1839 <flow-mod-add-match-from-field>
1840 <src-ofs>0</src-ofs>
1841 <dst-ofs>0</dst-ofs>
1842 <dst-field>518</dst-field>
1843 <src-field>1030</src-field>
1844 <flow-mod-num-bits>48</flow-mod-num-bits>
1845 </flow-mod-add-match-from-field>
1848 <flow-mod-add-match-from-field>
1849 <src-ofs>0</src-ofs>
1850 <dst-ofs>0</dst-ofs>
1851 <dst-field>3073</dst-field>
1852 <src-field>3073</src-field>
1853 <flow-mod-num-bits>8</flow-mod-num-bits>
1854 </flow-mod-add-match-from-field>
1857 <flow-mod-copy-value-into-field>
1858 <dst-ofs>0</dst-ofs>
1860 <dst-field>65540</dst-field>
1861 <flow-mod-num-bits>8</flow-mod-num-bits>
1862 </flow-mod-copy-value-into-field>
1864 <cookie>110100480</cookie>
1870 <installHw>true</installHw>
1871 <barrier>false</barrier>
1872 <strict>false</strict>
1873 <priority>61010</priority>
1874 <table_id>253</table_id>
1875 <flow-name>ACL</flow-name>
1877 ------------------------------------------------------------------------