Changes between Version 15 and Version 16 of HowTo/WriteOFv3Rspecs


Ignore:
Timestamp:
09/30/11 11:42:26 (8 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/WriteOFv3Rspecs

    v15 v16  
    231231   </openflow:packet>
    232232   }}}
     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
     238OPENFLOW 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
     249OPENFLOW 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  }}}