... | ... | @@ -23,24 +23,23 @@ For example if we have the following table: |
|
|
|
|
|
```
|
|
|
action drop(){
|
|
|
// drops packet
|
|
|
mark_to_drop(standard_metadata);
|
|
|
// drops packet
|
|
|
mark_to_drop(standard_metadata);
|
|
|
}
|
|
|
|
|
|
table table_name {
|
|
|
|
|
|
action action_name(bit<8> action_parameter){
|
|
|
...
|
|
|
}
|
|
|
|
|
|
key = {
|
|
|
standard_metadata.ingress_port: exact;
|
|
|
}
|
|
|
action action_name(bit<8> action_parameter){
|
|
|
...
|
|
|
}
|
|
|
|
|
|
actions = {
|
|
|
drop;
|
|
|
action_name;
|
|
|
}
|
|
|
table table_name {
|
|
|
key = {
|
|
|
standard_metadata.ingress_port: exact;
|
|
|
}
|
|
|
actions = {
|
|
|
drop;
|
|
|
action_name;
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
... | ... | |