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

Everything is a trivial.

REST: curl -i -v -u admin:admin -H "Content-type: application/json" -X PUT -d @flow_vlan.json http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:xxxxx/table/10/flow/1

enter code here{
"flow":{
    "strict":"false",
    "match":{
        "vlan-match":{
            "vlan-id":{
                "vlan-id":"10",
                "vlan-id-present":"true"
            }

        },
        "in-port":"1"
    },
    "instructions":{
        "instruction":{
            "order":"0",
            "go-to-table":{
                "table_id":"20"
            }

        }

    },
    "table_id":"10",
    "id":"1",
    "cookie_mask":"255",
    "hard-timeout":"0",
    "cookie":"1",
    "idle-timeout":"0",
    "flow-name":"vlan1",
    "priority":"2"
}

}