From Dan Kenigsberg danken@redhat.com:
Dan Kenigsberg has submitted this change and it was merged.
Change subject: net: Introducing common switch validations. ......................................................................
net: Introducing common switch validations.
Some validation procedures are switch agnostic and should be done before the setup call is dispatched to the relevant switch.
An example for this is that regardless of switch type, duplication of networks on a single southbound device shouldn't occur -- "_validate_inter_network_compatibility" goes to assure that, however it is currently only available for legacy switches. The validation was moved up and is called via _validate_common for each added network in a single transaction.
Change-Id: I43f477f620dadd740dc2040f75971a30ee47d61b Signed-off-by: Leon Goldberg lgoldber@redhat.com --- M lib/vdsm/network/legacy_switch.py M lib/vdsm/network/netinfo/cache.py M lib/vdsm/network/netswitch.py M tests/network/config_network_test.py M tests/network/netswitch_test.py 5 files changed, 145 insertions(+), 51 deletions(-)
Approvals: Jenkins CI: Passed CI tests Leon Goldberg: Verified Edward Haas: Looks good to me, approved