| 233 | |
| 234 | '''Tips''' : |
| 235 | * If you used to have the same ports and switches within all of your <flowspace> tags now you can create a group with the <openflow:group> tag and then use it within the <openflow:match> with an <openflow:use-group> tag |
| 236 | {{{ |
| 237 | #!xml |
| 238 | OPENFLOW v1-2 |
| 239 | <flowspace> |
| 240 | |
| 241 | <port urn="urn:publicid:IDN+Example:expedient:openflow+switch:06:d6:00:26:f1:3f:e4:80+port:16"/> |
| 242 | <port urn="urn:publicid:IDN+Example:expedient:openflow+switch:06:d6:00:26:f1:3f:e4:80+port:18"/> |
| 243 | <port urn="urn:publicid:IDN+Example:expedient:openflow+switch:06:d6:00:26:f1:3f:e4:80+port:36"/> |
| 244 | <dl_type from="2048" to="2054"/> |
| 245 | <nw_dst from="10.42.15.0" to="10.42.15.255"/> |
| 246 | |
| 247 | </flowspace> |
| 248 | |
| 249 | OPENFLOW v3 |
| 250 | <openflow:group name="mygrp"> |
| 251 | <openflow:datapath component_id="urn:publicid:IDN+openflow:foam:smyrna.example.net+datapath:06:d6:00:26:f1:3f:e4:80 |
| 252 | component_manager_id="urn:publicid:IDN+openflow:foam:smyrna.example.net+authority+am > |
| 253 | <openflow:port num="16"/> |
| 254 | <openflow:port num="18"/> |
| 255 | <openflow:port num="36"/> |
| 256 | </openflow:datapath> |
| 257 | </openflow:group> |
| 258 | |
| 259 | <openflow:match> |
| 260 | <openflow:use-group name="mygrp" /> |
| 261 | <openflow:packet> |
| 262 | <openflow:dl_type value="2048, 2049, 2050, 2051, 2052, 2053, 2054"/> |
| 263 | <openflow:nw_dst value="10.42.15.0/24" /> |
| 264 | </openflow:packet> |
| 265 | </openflow:match> |
| 266 | }}} |