Dan Kenigsberg has submitted this change and it was merged.

Change subject: network: add ifcfg write hook
......................................................................


network: add ifcfg write hook

Added a new hook point which is executed before and after
an ifcfg file is writen on the host as a result of
executing setupNetworks.
An example can be a use case where the user would like
to tweak the vdsm-produced ifcfg files by adding
PEERDNS=no to it.
The hook script receives a json file containing the
following dict:
name: the name of the interface being configured
ifcfg_file: full path of the interface file being written
config: the contents of the config file being written

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=965929
Change-Id: I2206ccf97b210bd58f03777d4ccd016785b02939
Signed-off-by: Marcin Mirecki <[email protected]>
Reviewed-on: https://gerrit.ovirt.org/44552
Reviewed-by: Dan Kenigsberg <[email protected]>
Continuous-Integration: Jenkins CI
---
M debian/vdsm.dirs
M vdsm.spec.in
M vdsm/hooks.py
M vdsm/network/configurators/ifcfg.py
M vdsm/vdsmd.8.in
M vdsm_hooks/Makefile.am
6 files changed, 54 insertions(+), 8 deletions(-)

Approvals:
  Marcin Mirecki: Verified
  Jenkins CI: Passed CI tests
  Dan Kenigsberg: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/44552
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2206ccf97b210bd58f03777d4ccd016785b02939
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Marcin Mirecki <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Marcin Mirecki <[email protected]>
Gerrit-Reviewer: Petr Horáček <[email protected]>
Gerrit-Reviewer: Yevgeny Zaspitsky <[email protected]>
Gerrit-Reviewer: [email protected]
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to