![]() | 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"
}
]
}
© 2014 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a trademark of The OpenDaylight Project, Inc.
Linux Foundation is a registered trademark of The Linux Foundation.
Linux is a registered trademark of Linus Torvalds.
Please see our brand guidelines, trademark guidelines, terms of service and privacy policy.