Carmelo Cascone | 4f01102 | 2017-06-05 01:41:02 -0400 | [diff] [blame] | 1 | action set_egress_port(port) { |
2 | modify_field(standard_metadata.egress_spec, port); | ||||
3 | } | ||||
4 | |||||
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 5 | action drop() { |
Carmelo Cascone | 4f01102 | 2017-06-05 01:41:02 -0400 | [diff] [blame] | 6 | modify_field(standard_metadata.egress_spec, DROP_PORT); |
7 | } | ||||
8 | |||||
9 | action send_to_cpu() { | ||||
10 | modify_field(standard_metadata.egress_spec, CPU_PORT); | ||||
11 | } |