Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

This is just a compliant sample rspec. For more details about how to write one, and how all the tags and attributes are used,
please refer to the documentation : http://groups.geni.net/geni/wiki/HowTo/WriteOFv3Rspecs.

Code Block
xml
linenumberstrue
<?xml version="1.1" encoding="UTF-8"?>
<rspec  xmlns="http://www.geni.net/resources/rspec/3"
        xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:openflow="http://www.geni.net/resources/rspec/ext/openflow/3"
        xs:schemaLocation="http://www.geni.net/resources/rspec/3
              http://www.geni.net/resources/rspec/3/request.xsd
              http://www.geni.net/resources/rspec/ext/openflow/3
              http://www.geni.net/resources/rspec/ext/openflow/3/of-resv.xsd"
    type="request">

    <openflow:sliver description="My awesome experiment that you should opt-in because I'm awesome."
                     email="john.doe@example.net"
                     ref="http://wiki.example.net/myproject">

        <openflow:controller url="tcp:controller.example.net:6633" type="primary" />
        <openflow:controller url="tcp:controller.example.net:6634" type="monitor" />
        <openflow:controller url="tcp:backup.example.net:6633" type="backup"  />
   
        <openflow:group name="johngrp">
            <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:09"
                component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am">
                <openflow:port num="1" name="GBE0/1" />
                <openflow:port num="2" name="GBE0/2"/>
                <openflow:port num="3" name="GBE0/3"/>
                <openflow:port num="4" name="GBE0/4"/>
             </openflow:datapath>

             <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:0a"
                  component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am">
                 <openflow:port num="1" />
                 <openflow:port num="2" />
                 <openflow:port num="3" />
             </openflow:datapath>
        </openflow:group>

        <openflow:group name="janegrp">
            <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:0b"
                 component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am">
                <openflow:port num="1" />
                <openflow:port num="2" />
                <openflow:port num="3" />
                <openflow:port num="4" />
            </openflow:datapath>
        </openflow:group>

        <openflow:match>
            <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:0d"
                component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am"
                dpid="00:00:00:00:00:00:00:0d">
              <openflow:port num="1" />
              <openflow:port num="2" />
              <openflow:port num="3" />
            </openflow:datapath>

            <openflow:packet>
                <openflow:dl_src value="22:33:44:55:66:77" />
                <openflow:dl_dst value="00:33:44:55:66:99" />
                <openflow:dl_type value="0x800" />
                <openflow:dl_vlan value="15" />
                <openflow:nw_src value="192.168.3.0/24" />
                <openflow:nw_dst value="192.168.3.0/24" />
                <openflow:nw_proto value="17" />
                <openflow:tp_src value="100" />
                <openflow:tp_dst value="1024-1026" />
            </openflow:packet>
        </openflow:match>
 
        <openflow:match>
            <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:0d"
                component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am"
                dpid="00:00:00:00:00:00:00:0d">
              <openflow:port num="1" />
              <openflow:port num="2" />
              <openflow:port num="3" />
            </openflow:datapath>

            <openflow:packet>
                <openflow:dl_type value="0x806" />
                <openflow:dl_vlan value="15" />
                <openflow:nw_src value="192.168.3.0/24" />
                <openflow:nw_dst value="192.168.3.0/24" />
            </openflow:packet>
        </openflow:match>

        <openflow:match>
              <openflow:use-group name="johngrp" />

              <openflow:packet>
                <openflow:dl_type value="0x800" />
                <openflow:nw_proto value="17" />
                <openflow:tp_src value="100" />
                <openflow:tp_dst value="1024-1026" />
              </openflow:packet>

        </openflow:match>

        <openflow:match>
            <openflow:use-group name="johngrp" />
            <openflow:use-group name="janegrp" />

            <openflow:datapath
                component_id="urn:publicid:IDN+openflow:foam:foam.example.net+datapath+00:00:00:00:00:00:00:0e"
            component_manager_id="urn:publicid:IDN+openflow:foam:foam.example.net+authority+am" />

            <openflow:packet>
                <openflow:dl_type value="0x800" />
            </openflow:packet>
        </openflow:match>
    </openflow:sliver>
</rspec>