Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Opendaylight Version - distribution-karaf-0.2.3-Helium-SR3 (HELIUM) Opendaylight Module - RestConf Client - Postman

Headers - [Content-Type: application/xml, Accept: application/xml] Creds - admin/admin

Flow-1 : Flood matching ARP mac-1

http://10.138.97.209:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

<flow xmlns="urn:opendaylight:flow:inventory"> <flow-name>f1</flow-name> <id>1</id> <table_id>0</table_id> <match> <ethernet-match> <ethernet-type> <type>2054</type> </ethernet-type>
<ethernet-source>

00:00:00:00:00:01
</ethernet-source> </ethernet-match> </match> <cookie>3026418949592973312</cookie> <hard-timeout>0</hard-timeout> <idle-timeout>0</idle-timeout> <priority>10</priority> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>FLOOD</output-node-connector> <max-length>60</max-length> </output-action> </action> </apply-actions> </instruction> </instructions> </flow>

Opendaylight Version - distribution-karaf-0.2.3-Helium-SR3 (HELIUM)

Opendaylight Module - RestConf

Client - Postman

Headers - [Content-Type: application/xml, Accept: application/xml]

Creds - admin/admin

Flow-1 :

Flood matching ARP mac-1mac-1
http://10.138.97.209:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

xml

http://10.138.97.209:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

    <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<flow xmlns="urn:opendaylight:flow:inventory"> 
    <flow-name>f1</flow-name> 
    <id>1</id> 
    <table_id>0</table_id> 
    <match> 
    <ethernet-match> 
            <ethernet-type> 
              <type>2054</type> 
            </ethernet-type> 
<ethernet-source>

00:00:00:00:00:01
<address>00:00:00:00:00:01</address> </ethernet-source> </ethernet-match> </match> <cookie>3026418949592973312</cookie> <hard-timeout>0</hard-timeout> <idle-timeout>0</idle-timeout> <priority>10</priority> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>FLOOD</output-node-connector> <max-length>60</max-length> </output-action> </action> </apply-actions> </instruction> </instructions> </flow>

</flow>

Opendaylight Version - distribution-karaf-0.2.3-Helium-SR3 (HELIUM)

Opendaylight Module - RestConf

Client - Postman

Method - PUT

Headers - [Content-Type: application/xml, Accept: application/xml]

Creds - admin/admin

Flood matching ARP mac-1
http://10.138.97.209:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

xml

    <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<flow xmlns="urn:opendaylight:flow:inventory"> 
    <flow-name>f1</flow-name> 
    <id>1</id> 
    <table_id>0</table_id> 
    <match> 
    <ethernet-match> 
            <ethernet-type> 
              <type>2054</type> 
            </ethernet-type>        
            <ethernet-source> 
                <address>00:00:00:00:00:01</address> 
            </ethernet-source> 
        </ethernet-match> 
    </match> 
    <cookie>3026418949592973312</cookie> 
    <hard-timeout>0</hard-timeout> 
    <idle-timeout>0</idle-timeout> 
    <priority>10</priority> 
    <instructions> 
        <instruction> 
            <order>0</order> 
            <apply-actions> 
                <action> 
                   <order>0</order> 
                   <output-action> 
                        <output-node-connector>FLOOD</output-node-connector> 
                        <max-length>60</max-length> 
                   </output-action> 
                </action> 
            </apply-actions> 
        </instruction> 
    </instructions> 
</flow>