Commit 4cc057ba authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-getcpe-ipparameter-221' into 'microservices'

Fix Huawei.MA5600T.get_cpe ip parameter.

See merge request !1191
parents 0f71f292 44b66f4b
Pipeline #8178 passed with stages
in 6 minutes and 43 seconds
......@@ -111,7 +111,9 @@ class Script(BaseScript):
parts = self.splitter.split(v)
parse_result = parse_kv(self.detail_map, parts[1])
r[ont_id]["distance"] = float(parse_result.get("ont_distance", 0))
r[ont_id]["ip"] = parse_result.get("ont_address", "").split("/")[0]
address = parse_result.get("ont_address", "")
if address:
r[ont_id]["ip"] = parse_result.get("ont_address", "").split("/")[0]
return list(six.itervalues(r))
def execute_snmp(self, **kwargs):
......
......@@ -106,7 +106,7 @@ Ext.define("NOC.sa.managedobject.CPEPanel", {
},
{
text: __("Loca Id"),
dataIndex: "loca_id"
dataIndex: "local_id"
},
{
text: __("Location"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment