Commit ee6482d3 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-huawei-ma5603-detect' into 'master'

Huawei.MA5600T.get_inventory. Fix detect MA5603.

See merge request !3827
parents a31654e6 603c83b3
Pipeline #24062 passed with stages
in 58 minutes and 52 seconds
......@@ -130,7 +130,7 @@
],
"data": {
"asset": {
"part_no": ["MA5600"]
"part_no": ["H511UPBA", "MA5600"]
},
"dimensions": {
"depth": 420,
......
......@@ -67,7 +67,7 @@
],
"data": {
"asset": {
"part_no": ["H511UPBA"]
"part_no": ["MA5603"]
},
"dimensions": {
"depth": 420,
......
......@@ -244,14 +244,21 @@ class Script(BaseScript):
if self.is_dslam:
# On MA5600 chassis and subboard serial is not supported
# frame = self.cli("display frame info 0")
part_no = "H511UPBA" # MA5600
descr = "MA5600's H511UPBA backplane, with double CELLBUS and GE bus"
# Detect MA5600/MA5603
slots, _ = self.profile.get_board(self)
if slots == 7:
part_no = "MA5603"
descr = "MA5603 subrack"
r += [
{
"type": "CHASSIS",
"number": 0,
"vendor": "Huawei",
"part_no": "H511UPBA",
"part_no": part_no,
"serial": None,
"description": "MA5600's H511UPBA backplane, with double CELLBUS and GE bus",
"description": descr,
}
]
subboards = self.get_ma5600_subboard()
......
......@@ -74,7 +74,7 @@ class Profile(BaseProfile):
matchers = {
"is_gpon_uplink": {"platform": {"$in": ["MA5626G"]}},
"is_dslam": {"platform": {"$in": ["MA5600"]}},
"is_dslam": {"platform": {"$in": ["MA5600", "MA5603"]}},
"is_ua5k": {"platform": {"$in": ["UA5000", "UA5000IPMB", "UA5000PVM"]}},
"is_lldp_support": {"version": {"$gte": "V800R018C10"}},
}
......
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