Changes between Version 1 and Version 2 of HowTo/WriteOFv3Rspecs/Examples


Ignore:
Timestamp:
09/30/11 09:34:11 (13 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/WriteOFv3Rspecs/Examples

    v1 v2  
    113113</rspec>
    114114}}}
     115
     116= Rspec with groups and datapaths =
     117{{{
     118#!xml
     119<rspec xmlns="http://www.protogeni.net/resources/rspec/2"
     120       xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
     121       xmlns:openflow="http://www.geni.net/resources/rspec/ext/openflow/2"
     122       xs:schemaLocation="http://www.protogeni.net/resources/rspec/2
     123                          http://www.protogeni.net/resources/rspec/2/request.xsd
     124                          http://www.geni.net/resources/rspec/ext/openflow/2
     125                          http://wwww.geni.net/resources/rspec/ext/openflow/2/of-resv.xsd"
     126       type="request">
     127   
     128    <openflow:sliver email="user@example.net" description="My GENI experiment"
     129ref="http://wiki.example.net/myproj" />
     130
     131       <openflow:controller url="tcp:myctrl.example.net:9933" type="primary" />
     132
     133       <openflow:group name="mygrp1">
     134
     135           <openflow:datapath
     136component_id="urn:publicid:IDN+openflow:foam:uxmal.example.net+datapath:06:af:00:24:a8:c4:b9:00">
     137             <openflow:port name="26" num="50"/>
     138             <openflow:port name="47" num="71"/>
     139           </openflow:datapath>
     140
     141       </openflow:group>
     142
     143       <openflow:match>
     144           <openflow:use-group name="mygrp1" />
     145            <openflow:datapath
     146component_id="urn:publicid:IDN+openflow:foam:uxmal.example.net+datapath:06:af:00:24:a8:c4:b9:00" />
     147           <openflow:datapath
     148component_id="urn:publicid:IDN+openflow:foam:uxmal.example.net+datapath:06:ac:00:24:a8:c4:b9:ff">
     149             <openflow:port name="26" num="20"/>
     150             <openflow:port name="27" num="21"/>
     151             <openflow:port name="28" num="22"/>
     152           </openflow:datapath>
     153
     154           <openflow:packet>
     155             <openflow:nw_src value="10.1.1.0/24" />
     156             <openflow:tp_src value="80" />
     157           <openflow:packet />
     158       <openflow:match>
     159   
     160       <openflow:match>
     161           <openflow:use-group name="mygrp2" />
     162           <openflow:packet>
     163             <openflow:nw_src value="10.1.1.0/24" />
     164             <openflow:tp_src value="80, 8080-8090" />
     165           <openflow:packet />
     166         <openflow:match>
     167
     168    </openflow:sliver>
     169
     170</rspec>
     171}}}