Debug send ipv4 packets to controller
This commit is contained in:
parent
b7b3e97302
commit
236bd8e7d6
3 changed files with 9 additions and 8 deletions
|
|
@ -27,9 +27,7 @@ control MyIngress(inout headers hdr,
|
|||
}
|
||||
|
||||
action controller_debug() {
|
||||
meta.task = TASK_DEBUG;
|
||||
meta.ingress_port = standard_metadata.ingress_port;
|
||||
clone3(CloneType.I2E, 100, meta);
|
||||
controller_reply(TASK_DEBUG);
|
||||
}
|
||||
|
||||
action controller_reply(task_t task) {
|
||||
|
|
@ -308,7 +306,6 @@ control MyIngress(inout headers hdr,
|
|||
NoAction;
|
||||
}
|
||||
size = ROUTING_TABLE_SIZE;
|
||||
// default_action = NoAction;
|
||||
default_action = controller_debug;
|
||||
}
|
||||
|
||||
|
|
@ -318,10 +315,11 @@ control MyIngress(inout headers hdr,
|
|||
}
|
||||
actions = {
|
||||
set_egress_port;
|
||||
controller_debug;
|
||||
NoAction;
|
||||
}
|
||||
size = ROUTING_TABLE_SIZE;
|
||||
default_action = NoAction;
|
||||
default_action = controller_debug;
|
||||
}
|
||||
|
||||
/********************** APPLYING TABLES ***********************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue