Adding P4 cheat cheet and its latex source files. (#201)
This commit is contained in:
16
utils/cheat_sheet_src/src/tables.txt
Normal file
16
utils/cheat_sheet_src/src/tables.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
table ipv4_lpm {
|
||||
key = {
|
||||
hdr.ipv4.dstAddr : lpm;
|
||||
// standard match kinds:
|
||||
// exact, ternary, lpm
|
||||
}
|
||||
// actions that can be invoked
|
||||
actions = {
|
||||
ipv4_forward;
|
||||
drop;
|
||||
NoAction;
|
||||
}
|
||||
// table properties
|
||||
size = 1024;
|
||||
default_action = NoAction();
|
||||
}
|
||||
Reference in New Issue
Block a user