added ECMP exercise for May 2016 P4 workshop

This commit is contained in:
Antonin Bas
2016-05-10 13:11:23 -07:00
parent f9ccd265f3
commit 547fc0a75f
31 changed files with 769 additions and 61 deletions

View File

@@ -0,0 +1,6 @@
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 forward set_dmac 10.0.1.1 => 00:04:00:00:00:00
table_add ipv4_lpm set_nhop 10.0.0.1/32 => 10.0.1.1 1