update ce_interface to fix a bug. (#59070)
This commit is contained in:
parent
8d6f1846a6
commit
07a598089a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue