nsg-ethz / p4-utils

Extension to Mininet that makes P4 networks easier to build
GNU General Public License v2.0
183 stars 67 forks source link

l3 assignment strategy: Support multiple unnamed hosts per switch #12

Closed lluki closed 3 years ago

lluki commented 4 years ago

Without this fix, multiple hosts get assigned the same ip

Signed-off-by: Lukas Humbel lukas.humbel@inf.ethz.ch

edgar-costa commented 4 years ago

Can you just provide me an example to see when it happens.

lluki commented 4 years ago

Sure p4app.json.zip

output of p4run without the patch:

.....
**********
Network configuration for: s_1_1_1
Default interface: s_1_1_1-eth0 10.1.1.2        00:00:0a:01:01:02
**********
**********
Network configuration for: s_1_1_2
Default interface: s_1_1_2-eth0 10.1.1.2        00:00:0a:01:01:02
**********
....

and with the patch

....
**********
Network configuration for: s_1_1_1
Default interface: s_1_1_1-eth0 10.1.1.2        00:00:0a:01:01:02
**********
**********
Network configuration for: s_1_1_2
Default interface: s_1_1_2-eth0 10.1.2.2        00:00:0a:01:02:02
**********
.....