[ovirt-devel] vdsm libs dependencies

Dan Kenigsberg danken at redhat.com
Fri Jun 9 16:44:11 UTC 2017


On Fri, Jun 9, 2017 at 2:49 PM, Pavel Gashev <Pax at acronis.com> wrote:
> Hello,
>
>
>
> I have a question about dependencies of vdsm libraries. Could somebody
> suggest how I can use vdsm.network.ipwrapper from vdsm.storage?
>
>
>
> Specifically, I need a way to determine that an IP address of NFS path is
> local. The right way to determine that is as simple as the following:
>
>
>
> # /sbin/ip route get X.X.X.X | grep -q ^local && echo IP is local
>
>
>
> This is why I need to use vdsm.network.ipwrapper. See details at
> https://gerrit.ovirt.org/#/c/68822/

I think that we should create a new
vdsm.network.api.is_local_address() for this. Do you have a better
idea, Edy?

P.S I just notice that we have a similar problem in already merged to iscsi.py:

 from vdsm.network.netinfo.routes import getRouteDeviceTo

should be similarly avoided.


More information about the Devel mailing list