blob: 91e6e67cd1fbc3bc05c79426196a9b0c5253c321 [file] [log] [blame]
Carmelo Cascone4f011022017-06-05 01:41:02 -04001header_type dummy_t {
2 fields {
3 dummyField : 8;
4 }
5}
6
7metadata dummy_t dummy_metadata;
8
9parser start {
10 return ingress;
11}
12
13table table0 {
14 reads {
15 dummy_metadata.dummyField : exact;
16 }
17 actions {
18 dummy_action;
19 }
20}
21
22action dummy_action() {
23 modify_field(dummy_metadata.dummyField, 1);
24}
25
26control ingress {
27 apply(table0);
28}