[controller,p4] add debug print into controller
This commit is contained in:
parent
e8e33c78ea
commit
949560c995
3 changed files with 31 additions and 2 deletions
|
|
@ -16,6 +16,12 @@ control MyIngress(inout headers hdr,
|
|||
inout metadata meta,
|
||||
inout standard_metadata_t standard_metadata) {
|
||||
|
||||
/* use for debugging and controlling flows */
|
||||
action send_to_controller() {
|
||||
clone3(CloneType.I2E, 100, meta);
|
||||
}
|
||||
|
||||
|
||||
/********************** ADDRESS TABLES ***********************************/
|
||||
action icmp6_answer() {
|
||||
|
||||
|
|
@ -41,10 +47,11 @@ control MyIngress(inout headers hdr,
|
|||
}
|
||||
actions = {
|
||||
icmp6_answer;
|
||||
send_to_controller;
|
||||
NoAction;
|
||||
}
|
||||
size = ADDRESS_TABLE_SIZE;
|
||||
default_action = NoAction;
|
||||
default_action = send_to_controller;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue