++doc ++egress port
This commit is contained in:
parent
44749cc359
commit
476b04c97c
2 changed files with 6 additions and 1 deletions
|
|
@ -144,6 +144,11 @@ control MyIngress(inout headers hdr,
|
|||
standard_metadata.egress_spec = out_port;
|
||||
}
|
||||
|
||||
action set_egress_port_and_mac (port_t out_port, mac_addr_t mac_addr) {
|
||||
hdr.ethernet.dst_addr = mac_addr;
|
||||
standard_metadata.egress_spec = out_port;
|
||||
}
|
||||
|
||||
action controller_reply(task_t task) {
|
||||
meta.task = task;
|
||||
meta.ingress_port = standard_metadata.ingress_port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue