added P4v1.1 sample program with demo
This commit is contained in:
10
p4v1_1/simple_router/commands.txt
Normal file
10
p4v1_1/simple_router/commands.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
table_set_default drop_expired do_drop_expired
|
||||
table_set_default send_frame _drop
|
||||
table_set_default forward _drop
|
||||
table_set_default ipv4_lpm _drop
|
||||
table_add send_frame rewrite_mac 1 => 00:aa:bb:00:00:00
|
||||
table_add send_frame rewrite_mac 2 => 00:aa:bb:00:00:01
|
||||
table_add forward set_dmac 10.0.0.10 => 00:04:00:00:00:00
|
||||
table_add forward set_dmac 10.0.1.10 => 00:04:00:00:00:01
|
||||
table_add ipv4_lpm set_nhop 10.0.0.10/32 => 10.0.0.10 1
|
||||
table_add ipv4_lpm set_nhop 10.0.1.10/32 => 10.0.1.10 2
|
||||
Reference in New Issue
Block a user