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

Here's a trimmed Preview of a flow created via the Dlux YANG UI interface that rewrites the destination MAC address and outputs it to a port. Hopefully this helps point you in the right direction:

http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/flow-node-inventory:table/2
{
    "id": "2",
    "flow": [
        {
            "id": "0",
            "match": {
                "in-port": "1",
                "ethernet-match": {
                    "ethernet-destination": {
                        "address": "aa:bb:cc:dd:ee:ff"
                    }
                },
            },
            "instructions": {
                "instruction": [
                    {
                        "order": "0",
                        "apply-actions": {
                            "action": [
                                {
                                    "order": 1,
                                    "set-dl-dst-action": {
                                        "address": "01:02:03:04:05:06"
                                    }
                                },
                                {
                                    "order": "0",
                                    "output-action": {
                                        "output-node-connector": "2",
                                        "max-length": "65535"
                                    }
                                }
                            ]
                        }
                    }
                ]
            },
            "priority": "0",
            "table_id": "2"
        }
    ]
}