Petr Horáček has posted comments on this change.
Change subject: hook: after_network_setup_fail
......................................................................
Patch Set 18: Verified+1
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')
In [14]: from vdsm import vdscli
In [15]: c = vdscli.connect()
In [16]: !ip l add dummy_1 type dummy
In [17]: c.setupNetworks({'test-network1': {'nic': 'dummy_1'}}, {},
{'connectivityCheck': False})
Out[17]: {'status': {'code': 0, 'message': 'Done'}}
In [18]: c.setupNetworks({'test-network1': {'nic': 'dummy_2'}}, {},
{'connectivityCheck': False})
Out[18]: {'status': {'code': 23, 'message': 'unknown nic: dummy_2'}}
In [19]: !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/45085
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I8a5d086b15b72c13d2b390c1310c2279446ac14f
Gerrit-PatchSet: 18
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Ido Barkan <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondřej Svoboda <[email protected]>
Gerrit-Reviewer: Petr Horáček <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: No
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches