Change in vdsm[master]: Dynamic load of supervdsm_api funcs

edwardh at redhat.com edwardh at redhat.com
Thu Feb 11 07:08:39 UTC 2016


Edward Haas has posted comments on this change.

Change subject: Dynamic load of supervdsm_api funcs
......................................................................


Patch Set 14:

(1 comment)

https://gerrit.ovirt.org/#/c/52875/14/vdsm/supervdsm_api/network.py
File vdsm/supervdsm_api/network.py:

Line 27: 
Line 28: # Ignoring pyflakes unused import warning
Line 29: expose(restoreNetworks)
Line 30: expose(setupNetworks)
Line 31: expose(setSafeNetworkConfig)
> it still expose the function with the original name "restore". so this appr
The trivial option is to have a bridge here (define a func that calls restore).

Another is to 'expose' with an alias, setting in the server the alias as the attribute name and assigning to it the func.
expose(api_func, api_alias)


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I67a1c349c15a03ba54788ffafd0c5b9d30ff7037
Gerrit-PatchSet: 14
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Edward Haas <edwardh at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list