Petr Horáček has posted comments on this change. Change subject: hooks: after_network_setup_fail ......................................................................
Patch Set 1: Verified+1 Passed network tests plus verified with hook: #!/bin/python import hooking with open('/tmp/test_hook', 'a') as f: setup = hooking.read_json() f.write(str(setup)) f.write('\n') [root@centos7 ~]# ip l add dummy_1 type dummy [root@centos7 ~]# python >>> from vdsm import vdscli >>> c = vdscli.connect() >>> c.setupNetworks({'test-network1': {'nic': 'dummy_1'}}, {}, {'connectivityCheck': False}) {'status': {'message': 'Done', 'code': 0}} >>> c.setupNetworks({'test-network1': {'nic': 'dummy_2'}}, {}, {'connectivityCheck': False}) {'status': {'message': 'unknown nic: dummy_2', 'code': 23}} >>> [root@centos7 ~]# cat /tmp/test_hook {u'request': {u'bondings': {}, u'networks': {u'test-network1': {u'nic': u'dummy_2'}}, u'options': {u'connectivityCheck': False}}} -- To view, visit https://gerrit.ovirt.org/49688 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I8a5d086b15b72c13d2b390c1310c2279446ac14f Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: ovirt-3.6 Gerrit-Owner: Petr Horáček <phora...@redhat.com> Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com> Gerrit-Reviewer: Ido Barkan <ibar...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Petr Horáček <phora...@redhat.com> Gerrit-Reviewer: gerrit-hooks <automat...@ovirt.org> Gerrit-HasComments: No _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches