update ce_interface to fix a bug. (#59070)

pull/59073/head
Xu Yuandong 5 years ago committed by ansibot
parent 8d6f1846a6
commit 07a598089a

@ -160,7 +160,7 @@ CE_NC_GET_INTFS = """
<interfaces>
<interface>
<ifName></ifName>
<ifPhyType></ifPhyType>
<ifPhyType>%s</ifPhyType>
<ifNumber></ifNumber>
<ifDescr></ifDescr>
<ifAdminStatus></ifAdminStatus>
@ -371,7 +371,7 @@ class Interface(object):
""" get interfaces attributes 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)
if "<data/>" in recv_xml:

Loading…
Cancel
Save