From a01868e3a8dafd18aa859b620f8ddc5c865408c7 Mon Sep 17 00:00:00 2001 From: Christopher Croy Date: Fri, 25 Oct 2024 18:40:25 +0000 Subject: [PATCH] sonic-buildimage: ignore missing hwsku dict intfs With the introduction of new hwskus that do not utilize every front panel port available, i.e. the ports are not fully populated, the sonic-config-engine will raise an exception when checking the hwsku dict for such interfaces. This change removes that exception. --- src/sonic-config-engine/portconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-config-engine/portconfig.py b/src/sonic-config-engine/portconfig.py index 788774d3496..af64951309c 100644 --- a/src/sonic-config-engine/portconfig.py +++ b/src/sonic-config-engine/portconfig.py @@ -417,7 +417,7 @@ def parse_platform_json_file(hwsku_json_file, platform_json_file): for intf in port_dict[INTF_KEY]: if intf not in hwsku_dict[INTF_KEY]: - raise Exception("{} is not available in hwsku_dict".format(intf)) + continue # take default_brkout_mode from hwsku.json brkout_mode = hwsku_dict[INTF_KEY][intf][BRKOUT_MODE]