update ce_interface to fix a bug. (#59070)

This commit is contained in:
Xu Yuandong 2019-07-14 23:28:42 +08:00 committed by ansibot
parent 8d6f1846a6
commit 07a598089a

View file

@ -160,7 +160,7 @@ CE_NC_GET_INTFS = """
<interfaces> <interfaces>
<interface> <interface>
<ifName></ifName> <ifName></ifName>
<ifPhyType></ifPhyType> <ifPhyType>%s</ifPhyType>
<ifNumber></ifNumber> <ifNumber></ifNumber>
<ifDescr></ifDescr> <ifDescr></ifDescr>
<ifAdminStatus></ifAdminStatus> <ifAdminStatus></ifAdminStatus>
@ -371,7 +371,7 @@ class Interface(object):
""" get interfaces attributes dict.""" """ get interfaces attributes dict."""
intfs_info = dict() intfs_info = dict()
conf_str = CE_NC_GET_INTFS conf_str = CE_NC_GET_INTFS % self.interface_type
recv_xml = get_nc_config(self.module, conf_str) recv_xml = get_nc_config(self.module, conf_str)
if "<data/>" in recv_xml: if "<data/>" in recv_xml: