cnp3 / ipmininet

Mininet extension to make experimenting with IP networks easy
GNU General Public License v2.0
65 stars 51 forks source link

Add IPv6 support in the CLI #2

Closed jadinm closed 7 years ago

jadinm commented 7 years ago

This includes auto-replacement by IPv6 address and ping-related CLI commands that also check IPv6 connectivity.

But this does not include iperf-related CLI commands.

oliviertilmans commented 7 years ago

I'd tweak the ping command to not depend at all on the one from the super class. Instead, similarly to the default command: I'd collect the available addresses from all hosts, and execute the v4 ping or the v6 on a per host basis. From there, your actual (currently) ping6 command would dynamically choose between running ping6 or ping for each pair depending on the availability of the addresses; i.e. both ping() and ping6() would use an internal function that would take a input a dist hosts:={hostname: (default_v4, default_v6)}.