Closed jadinm closed 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)}.
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.