Ido Barkan has posted comments on this change. Change subject: Get list of nameservers for host ......................................................................
Patch Set 3: (1 comment) https://gerrit.ovirt.org/#/c/39460/3/lib/vdsm/netinfo.py File lib/vdsm/netinfo.py: Line 84: OPERSTATE_UP = 'up' Line 85: DUMMY_BRIDGE # Appease flake8 since dummy bridge should be exported from here Line 86: Line 87: Line 88: def get_host_nameservers(): > Okay. Once I expose the function get_host_namservers() from get(), I should yes. you can also use python directly to get less data: >> from vdsm import netinfo >> print netinfo.get() Line 89: """Returns a list of nameservers listed in /etc/resolv.conf""" Line 90: with open(DNS_RESOLVE_CONF_FILE,'r') as file_object: Line 91: file_text = file_object.read() Line 92: return _parse_dnss(file_text) -- To view, visit https://gerrit.ovirt.org/39460 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I3ce8a0e2bf93b118620739b144e70c576f03cd08 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Priya Avhad <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Ido Barkan <[email protected]> Gerrit-Reviewer: Priya Avhad <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
