Petr Horáček has uploaded a new change for review.

Change subject: hooks: ovs: support hot-plugged vnics
......................................................................

hooks: ovs: support hot-plugged vnics

To support hot-plugged vnics, we have to place our before_device_create
hook to before_nic_hotplug hookpoing.

Change-Id: Id8fa6a06fd93af3bd6a9f9d2ec3e302b088cdf98
Signed-off-by: Petr Horáček <[email protected]>
---
M vdsm_hooks/ovs/Makefile.am
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/47/52347/1

diff --git a/vdsm_hooks/ovs/Makefile.am b/vdsm_hooks/ovs/Makefile.am
index a539039..152be56 100644
--- a/vdsm_hooks/ovs/Makefile.am
+++ b/vdsm_hooks/ovs/Makefile.am
@@ -53,6 +53,9 @@
        $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_device_create
        $(INSTALL_SCRIPT) $(srcdir)/ovs_before_device_create.py \
                $(DESTDIR)$(vdsmhooksdir)/before_device_create/50_ovs
+       $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug
+       $(INSTALL_SCRIPT) $(srcdir)/ovs_before_device_create.py \
+               $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug/50_ovs
        $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_network_setup
        $(INSTALL_SCRIPT) $(srcdir)/ovs_before_network_setup.py \
                $(DESTDIR)$(vdsmhooksdir)/before_network_setup/50_ovs
@@ -75,6 +78,7 @@
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_get_caps/50_ovs
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_get_stats/50_ovs
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_device_create/50_ovs
+       $(RM) $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug/50_ovs
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_network_setup/50_ovs
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_network_setup/ovs_setup_ovs.py
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_network_setup/ovs_setup_ip.py
@@ -93,6 +97,9 @@
        $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_device_create
        $(INSTALL_SCRIPT) $(srcdir)/$(utilsfile) \
                $(DESTDIR)$(vdsmhooksdir)/before_device_create/$(utilsfile)
+       $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug
+       $(INSTALL_SCRIPT) $(srcdir)/$(utilsfile) \
+               $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug/$(utilsfile)
        $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_network_setup
        $(INSTALL_SCRIPT) $(srcdir)/$(utilsfile) \
                $(DESTDIR)$(vdsmhooksdir)/before_network_setup/$(utilsfile)
@@ -107,6 +114,7 @@
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_get_caps/$(utilsfile)
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_get_stats/$(utilsfile)
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_device_create/$(utilsfile)
+       $(RM) $(DESTDIR)$(vdsmhooksdir)/before_nic_hotplug/$(utilsfile)
        $(RM) $(DESTDIR)$(vdsmhooksdir)/before_network_setup/$(utilsfile)
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_network_setup/$(utilsfile)
        $(RM) $(DESTDIR)$(vdsmhooksdir)/after_network_setup_fail/$(utilsfile)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8fa6a06fd93af3bd6a9f9d2ec3e302b088cdf98
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to