network icon indicating copy to clipboard operation
network copied to clipboard

[RFE] implement some checks for connectivity

Open thom311 opened this issue 7 years ago • 1 comments

When the role runs and configures the network, it determines success based on whether it was able to perform all requested configurations.

But it would be useful, to extend this and determine success based on certain properties by proping the network. For example, is a certain LLDP neighbour visible? Did we get a certain address from DHCP? Is a certain host reachable via ping/arping?

In conjunction with #33, such an extended connectivity check is useful to determine success/failure, and whether to restore the previous configuration (rollback).

Maybe these checks should be implemented as a separate module, not inside network_connections.py.

thom311 avatar Mar 07 '18 15:03 thom311

How about we just add a hook so that users can specify a command that needs to run successfully before removing the checkpoint and rollback the checkpoint if it fails? Then users can implement whatever custom script they have in mind.

tyll avatar Apr 20 '20 18:04 tyll