diff --git a/collections/inv.objectmodels/Huawei/SmartAX/MA5600.json b/collections/inv.objectmodels/Huawei/SmartAX/MA5600.json index 2e5dafeaacf346dc6c8bfb5d196fb34d5e8d801e..e6d62d088ff74c37ddba793dd0bed596c1b6eabf 100644 --- a/collections/inv.objectmodels/Huawei/SmartAX/MA5600.json +++ b/collections/inv.objectmodels/Huawei/SmartAX/MA5600.json @@ -130,7 +130,7 @@ ], "data": { "asset": { - "part_no": ["MA5600"] + "part_no": ["H511UPBA", "MA5600"] }, "dimensions": { "depth": 420, diff --git a/collections/inv.objectmodels/Huawei/SmartAX/MA5603.json b/collections/inv.objectmodels/Huawei/SmartAX/MA5603.json index 1bcf998254aea60ababb984e9c1bb973b2dde9a1..e697715c50b34b7e2f56152706f974ecc0594802 100644 --- a/collections/inv.objectmodels/Huawei/SmartAX/MA5603.json +++ b/collections/inv.objectmodels/Huawei/SmartAX/MA5603.json @@ -67,7 +67,7 @@ ], "data": { "asset": { - "part_no": ["H511UPBA"] + "part_no": ["MA5603"] }, "dimensions": { "depth": 420, diff --git a/sa/profiles/Huawei/MA5600T/get_inventory.py b/sa/profiles/Huawei/MA5600T/get_inventory.py index b4a41d9147f6bebf081e0123e8206ba1f9e132a7..1fdffd49721db311d5b1ac86c1e4052dde5e7058 100644 --- a/sa/profiles/Huawei/MA5600T/get_inventory.py +++ b/sa/profiles/Huawei/MA5600T/get_inventory.py @@ -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() diff --git a/sa/profiles/Huawei/MA5600T/profile.py b/sa/profiles/Huawei/MA5600T/profile.py index 5990e93bc5134a6b050d44fb4ed1ac6b67a0d807..1de5fd057730c7469f77119a25b7bd28f7ee320f 100644 --- a/sa/profiles/Huawei/MA5600T/profile.py +++ b/sa/profiles/Huawei/MA5600T/profile.py @@ -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"}}, }