From e3408f827c81ead6f7dda7f4d66b8ac779c176b4 Mon Sep 17 00:00:00 2001 From: Rida Hanif <61490193+ridahanif96@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:06:31 +0000 Subject: [PATCH] Fix for platform output --- .../tests/sample_output/platform_output.json | 1573 +++++++++-------- .../tests/t0-sample-port-config.ini | 67 +- 2 files changed, 866 insertions(+), 774 deletions(-) diff --git a/src/sonic-config-engine/tests/sample_output/platform_output.json b/src/sonic-config-engine/tests/sample_output/platform_output.json index 4c6cf197c3..8528a557ac 100644 --- a/src/sonic-config-engine/tests/sample_output/platform_output.json +++ b/src/sonic-config-engine/tests/sample_output/platform_output.json @@ -1,924 +1,1015 @@ { "Ethernet8": { - "index": "3", - "lanes": "8", - "description": "Eth3/1", - "mtu": "9100", - "alias": "Eth3/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "3", + "lanes": "8", + "description": "Eth3/1", + "mtu": "9100", + "alias": "Eth3/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet9": { - "index": "3", - "lanes": "9", - "description": "Eth3/2", - "mtu": "9100", - "alias": "Eth3/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "3", + "lanes": "9", + "description": "Eth3/2", + "mtu": "9100", + "alias": "Eth3/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet36": { - "index": "10", - "lanes": "36,37", - "description": "Eth10/1", - "mtu": "9100", - "alias": "Eth10/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "10", + "lanes": "36,37", + "description": "Eth10/1", + "mtu": "9100", + "alias": "Eth10/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet98": { - "index": "25", - "lanes": "98", - "description": "Eth25/2", - "mtu": "9100", - "alias": "Eth25/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "25", + "lanes": "98", + "description": "Eth25/2", + "mtu": "9100", + "alias": "Eth25/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet0": { - "index": "1", - "lanes": "0,1,2,3", - "fec": "rs", - "description": "ARISTA01T1:et1", - "admin_status": "up", - "mtu": "9100", - "alias": "Eth1", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "1", + "lanes": "0,1,2,3", + "fec": "rs", + "description": "ARISTA01T1:et1", + "admin_status": "up", + "mtu": "9100", + "alias": "Eth1", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet6": { - "index": "2", - "lanes": "6,7", - "description": "Eth2/2", - "admin_status": "up", - "mtu": "9100", - "alias": "Eth2/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "2", + "lanes": "6,7", + "description": "Eth2/2", + "admin_status": "up", + "mtu": "9100", + "alias": "Eth2/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet4": { - "index": "2", - "lanes": "4,5", - "description": "Eth2/1", - "admin_status": "up", - "mtu": "9100", - "alias": "Eth2/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "2", + "lanes": "4,5", + "description": "Eth2/1", + "admin_status": "up", + "mtu": "9100", + "alias": "Eth2/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet109": { - "index": "28", - "lanes": "109", - "description": "Eth28/2", - "mtu": "9100", - "alias": "Eth28/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "28", + "lanes": "109", + "description": "Eth28/2", + "mtu": "9100", + "alias": "Eth28/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet108": { - "index": "28", - "lanes": "108", - "description": "Eth28/1", - "mtu": "9100", - "alias": "Eth28/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "28", + "lanes": "108", + "description": "Eth28/1", + "mtu": "9100", + "alias": "Eth28/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet18": { - "index": "5", - "lanes": "18", - "description": "Eth5/2", - "mtu": "9100", - "alias": "Eth5/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "5", + "lanes": "18", + "description": "Eth5/2", + "mtu": "9100", + "alias": "Eth5/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet100": { - "index": "26", - "lanes": "100,101,102,103", - "fec": "rs", - "description": "Eth26", - "mtu": "9100", - "alias": "Eth26", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "26", + "lanes": "100,101,102,103", + "fec": "rs", + "description": "Eth26", + "mtu": "9100", + "alias": "Eth26", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet34": { - "index": "9", - "lanes": "34,35", - "description": "Eth9/3", - "mtu": "9100", - "alias": "Eth9/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "9", + "lanes": "34,35", + "description": "Eth9/3", + "mtu": "9100", + "alias": "Eth9/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet104": { - "index": "27", - "lanes": "104,105", - "description": "Eth27/1", - "mtu": "9100", - "alias": "Eth27/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "27", + "lanes": "104,105", + "description": "Eth27/1", + "mtu": "9100", + "alias": "Eth27/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet106": { - "index": "27", - "lanes": "106,107", - "description": "Eth27/2", - "mtu": "9100", - "alias": "Eth27/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "27", + "lanes": "106,107", + "description": "Eth27/2", + "mtu": "9100", + "alias": "Eth27/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet94": { - "index": "24", - "lanes": "94,95", - "description": "Eth24/3", - "mtu": "9100", - "alias": "Eth24/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "24", + "lanes": "94,95", + "description": "Eth24/3", + "mtu": "9100", + "alias": "Eth24/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet126": { - "index": "32", - "lanes": "126,127", - "description": "Eth32/2", - "mtu": "9100", - "alias": "Eth32/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "32", + "lanes": "126,127", + "description": "Eth32/2", + "mtu": "9100", + "alias": "Eth32/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet96": { - "index": "25", - "lanes": "96,97", - "description": "Eth25/1", - "mtu": "9100", - "alias": "Eth25/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "25", + "lanes": "96,97", + "description": "Eth25/1", + "mtu": "9100", + "alias": "Eth25/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet124": { - "index": "32", - "lanes": "124,125", - "description": "Eth32/1", - "mtu": "9100", - "alias": "Eth32/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "32", + "lanes": "124,125", + "description": "Eth32/1", + "mtu": "9100", + "alias": "Eth32/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet90": { - "index": "23", - "lanes": "90", - "description": "Eth23/3", - "mtu": "9100", - "alias": "Eth23/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "23", + "lanes": "90", + "description": "Eth23/3", + "mtu": "9100", + "alias": "Eth23/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet91": { - "index": "23", - "lanes": "91", - "description": "Eth23/4", - "mtu": "9100", - "alias": "Eth23/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "23", + "lanes": "91", + "description": "Eth23/4", + "mtu": "9100", + "alias": "Eth23/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet92": { - "index": "24", - "lanes": "92", - "description": "Eth24/1", - "mtu": "9100", - "alias": "Eth24/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "24", + "lanes": "92", + "description": "Eth24/1", + "mtu": "9100", + "alias": "Eth24/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet93": { - "index": "24", - "lanes": "93", - "description": "Eth24/2", - "mtu": "9100", - "alias": "Eth24/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "24", + "lanes": "93", + "description": "Eth24/2", + "mtu": "9100", + "alias": "Eth24/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet50": { - "index": "13", - "lanes": "50", - "description": "Eth13/3", - "mtu": "9100", - "alias": "Eth13/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "13", + "lanes": "50", + "description": "Eth13/3", + "mtu": "9100", + "alias": "Eth13/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet51": { - "index": "13", - "lanes": "51", - "description": "Eth13/4", - "mtu": "9100", - "alias": "Eth13/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "13", + "lanes": "51", + "description": "Eth13/4", + "mtu": "9100", + "alias": "Eth13/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet52": { - "index": "14", - "lanes": "52", - "description": "Eth14/1", - "mtu": "9100", - "alias": "Eth14/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "14", + "lanes": "52", + "description": "Eth14/1", + "mtu": "9100", + "alias": "Eth14/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet53": { - "index": "14", - "lanes": "53", - "description": "Eth14/2", - "mtu": "9100", - "alias": "Eth14/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "14", + "lanes": "53", + "description": "Eth14/2", + "mtu": "9100", + "alias": "Eth14/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet54": { - "index": "14", - "lanes": "54,55", - "description": "Eth14/3", - "mtu": "9100", - "alias": "Eth14/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "14", + "lanes": "54,55", + "description": "Eth14/3", + "mtu": "9100", + "alias": "Eth14/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet99": { - "index": "25", - "lanes": "99", - "description": "Eth25/3", - "mtu": "9100", - "alias": "Eth25/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "25", + "lanes": "99", + "description": "Eth25/3", + "mtu": "9100", + "alias": "Eth25/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet56": { - "index": "15", - "lanes": "56,57", - "description": "Eth15/1", - "mtu": "9100", - "alias": "Eth15/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "15", + "lanes": "56,57", + "description": "Eth15/1", + "mtu": "9100", + "alias": "Eth15/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet113": { - "index": "29", - "lanes": "113", - "description": "Eth29/2", - "mtu": "9100", - "alias": "Eth29/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "29", + "lanes": "113", + "description": "Eth29/2", + "mtu": "9100", + "alias": "Eth29/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet76": { - "index": "20", - "lanes": "76,77", - "description": "Eth20/1", - "mtu": "9100", - "alias": "Eth20/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "20", + "lanes": "76,77", + "description": "Eth20/1", + "mtu": "9100", + "alias": "Eth20/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet74": { - "index": "19", - "lanes": "74,75", - "description": "Eth19/3", - "mtu": "9100", - "alias": "Eth19/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "19", + "lanes": "74,75", + "description": "Eth19/3", + "mtu": "9100", + "alias": "Eth19/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet39": { - "index": "10", - "lanes": "39", - "description": "Eth10/3", - "mtu": "9100", - "alias": "Eth10/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "10", + "lanes": "39", + "description": "Eth10/3", + "mtu": "9100", + "alias": "Eth10/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet72": { - "index": "19", - "lanes": "72", - "description": "Eth19/1", - "mtu": "9100", - "alias": "Eth19/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "19", + "lanes": "72", + "description": "Eth19/1", + "mtu": "9100", + "alias": "Eth19/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet73": { - "index": "19", - "lanes": "73", - "description": "Eth19/2", - "mtu": "9100", - "alias": "Eth19/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "19", + "lanes": "73", + "description": "Eth19/2", + "mtu": "9100", + "alias": "Eth19/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet70": { - "index": "18", - "lanes": "70", - "description": "Eth18/3", - "mtu": "9100", - "alias": "Eth18/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "18", + "lanes": "70", + "description": "Eth18/3", + "mtu": "9100", + "alias": "Eth18/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet71": { - "index": "18", - "lanes": "71", - "description": "Eth18/4", - "mtu": "9100", - "alias": "Eth18/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "18", + "lanes": "71", + "description": "Eth18/4", + "mtu": "9100", + "alias": "Eth18/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet32": { - "index": "9", - "lanes": "32", - "description": "Eth9/1", - "mtu": "9100", - "alias": "Eth9/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "9", + "lanes": "32", + "description": "Eth9/1", + "mtu": "9100", + "alias": "Eth9/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet33": { - "index": "9", - "lanes": "33", - "description": "Eth9/2", - "mtu": "9100", - "alias": "Eth9/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "9", + "lanes": "33", + "description": "Eth9/2", + "mtu": "9100", + "alias": "Eth9/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet16": { - "index": "5", - "lanes": "16,17", - "description": "Eth5/1", - "mtu": "9100", - "alias": "Eth5/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "5", + "lanes": "16,17", + "description": "Eth5/1", + "mtu": "9100", + "alias": "Eth5/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet111": { - "index": "28", - "lanes": "111", - "description": "Eth28/4", - "mtu": "9100", - "alias": "Eth28/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "28", + "lanes": "111", + "description": "Eth28/4", + "mtu": "9100", + "alias": "Eth28/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet10": { - "index": "3", - "lanes": "10", - "description": "Eth3/3", - "mtu": "9100", - "alias": "Eth3/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "3", + "lanes": "10", + "description": "Eth3/3", + "mtu": "9100", + "alias": "Eth3/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet11": { - "index": "3", - "lanes": "11", - "description": "Eth3/4", - "mtu": "9100", - "alias": "Eth3/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "3", + "lanes": "11", + "description": "Eth3/4", + "mtu": "9100", + "alias": "Eth3/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet12": { - "index": "4", - "lanes": "12", - "description": "Eth4/1", - "mtu": "9100", - "alias": "Eth4/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "4", + "lanes": "12", + "description": "Eth4/1", + "mtu": "9100", + "alias": "Eth4/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet13": { - "index": "4", - "lanes": "13", - "description": "Eth4/2", - "mtu": "9100", - "alias": "Eth4/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "4", + "lanes": "13", + "description": "Eth4/2", + "mtu": "9100", + "alias": "Eth4/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet58": { - "index": "15", - "lanes": "58", - "description": "Eth15/2", - "mtu": "9100", - "alias": "Eth15/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "15", + "lanes": "58", + "description": "Eth15/2", + "mtu": "9100", + "alias": "Eth15/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet19": { - "index": "5", - "lanes": "19", - "description": "Eth5/3", - "mtu": "9100", - "alias": "Eth5/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "5", + "lanes": "19", + "description": "Eth5/3", + "mtu": "9100", + "alias": "Eth5/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet59": { - "index": "15", - "lanes": "59", - "description": "Eth15/3", - "mtu": "9100", - "alias": "Eth15/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "15", + "lanes": "59", + "description": "Eth15/3", + "mtu": "9100", + "alias": "Eth15/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet38": { - "index": "10", - "lanes": "38", - "description": "Eth10/2", - "mtu": "9100", - "alias": "Eth10/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "10", + "lanes": "38", + "description": "Eth10/2", + "mtu": "9100", + "alias": "Eth10/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet78": { - "index": "20", - "lanes": "78", - "description": "Eth20/2", - "mtu": "9100", - "alias": "Eth20/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "20", + "lanes": "78", + "description": "Eth20/2", + "mtu": "9100", + "alias": "Eth20/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet68": { - "index": "18", - "lanes": "68", - "description": "Eth18/1", - "mtu": "9100", - "alias": "Eth18/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "18", + "lanes": "68", + "description": "Eth18/1", + "mtu": "9100", + "alias": "Eth18/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet14": { - "index": "4", - "lanes": "14,15", - "description": "Eth4/3", - "mtu": "9100", - "alias": "Eth4/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "4", + "lanes": "14,15", + "description": "Eth4/3", + "mtu": "9100", + "alias": "Eth4/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet89": { - "index": "23", - "lanes": "89", - "description": "Eth23/2", - "mtu": "9100", - "alias": "Eth23/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "23", + "lanes": "89", + "description": "Eth23/2", + "mtu": "9100", + "alias": "Eth23/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet88": { - "index": "23", - "lanes": "88", - "description": "Eth23/1", - "mtu": "9100", - "alias": "Eth23/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "23", + "lanes": "88", + "description": "Eth23/1", + "mtu": "9100", + "alias": "Eth23/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet118": { - "index": "30", - "lanes": "118", - "description": "Eth30/2", - "mtu": "9100", - "alias": "Eth30/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "30", + "lanes": "118", + "description": "Eth30/2", + "mtu": "9100", + "alias": "Eth30/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet119": { - "index": "30", - "lanes": "119", - "description": "Eth30/3", - "mtu": "9100", - "alias": "Eth30/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "30", + "lanes": "119", + "description": "Eth30/3", + "mtu": "9100", + "alias": "Eth30/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet116": { - "index": "30", - "lanes": "116,117", - "description": "Eth30/1", - "mtu": "9100", - "alias": "Eth30/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "30", + "lanes": "116,117", + "description": "Eth30/1", + "mtu": "9100", + "alias": "Eth30/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet114": { - "index": "29", - "lanes": "114,115", - "description": "Eth29/3", - "mtu": "9100", - "alias": "Eth29/3", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "29", + "lanes": "114,115", + "description": "Eth29/3", + "mtu": "9100", + "alias": "Eth29/3", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet80": { - "index": "21", - "lanes": "80,81,82,83", - "fec": "rs", - "description": "Eth21", - "mtu": "9100", - "alias": "Eth21", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "21", + "lanes": "80,81,82,83", + "fec": "rs", + "description": "Eth21", + "mtu": "9100", + "alias": "Eth21", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet112": { - "index": "29", - "lanes": "112", - "description": "Eth29/1", - "mtu": "9100", - "alias": "Eth29/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "29", + "lanes": "112", + "description": "Eth29/1", + "mtu": "9100", + "alias": "Eth29/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet86": { - "index": "22", - "lanes": "86,87", - "description": "Eth22/2", - "mtu": "9100", - "alias": "Eth22/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "22", + "lanes": "86,87", + "description": "Eth22/2", + "mtu": "9100", + "alias": "Eth22/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet110": { - "index": "28", - "lanes": "110", - "description": "Eth28/3", - "mtu": "9100", - "alias": "Eth28/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "28", + "lanes": "110", + "description": "Eth28/3", + "mtu": "9100", + "alias": "Eth28/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet84": { - "index": "22", - "lanes": "84,85", - "description": "Eth22/1", - "mtu": "9100", - "alias": "Eth22/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "22", + "lanes": "84,85", + "description": "Eth22/1", + "mtu": "9100", + "alias": "Eth22/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet31": { - "index": "8", - "lanes": "31", - "description": "Eth8/4", - "mtu": "9100", - "alias": "Eth8/4", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "8", + "lanes": "31", + "description": "Eth8/4", + "mtu": "9100", + "alias": "Eth8/4", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet49": { - "index": "13", - "lanes": "49", - "description": "Eth13/2", - "mtu": "9100", - "alias": "Eth13/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "13", + "lanes": "49", + "description": "Eth13/2", + "mtu": "9100", + "alias": "Eth13/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet48": { - "index": "13", - "lanes": "48", - "description": "Eth13/1", - "mtu": "9100", - "alias": "Eth13/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "13", + "lanes": "48", + "description": "Eth13/1", + "mtu": "9100", + "alias": "Eth13/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet46": { - "index": "12", - "lanes": "46,47", - "description": "Eth12/2", - "mtu": "9100", - "alias": "Eth12/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "12", + "lanes": "46,47", + "description": "Eth12/2", + "mtu": "9100", + "alias": "Eth12/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet30": { - "index": "8", - "lanes": "30", - "description": "Eth8/3", - "mtu": "9100", - "alias": "Eth8/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "8", + "lanes": "30", + "description": "Eth8/3", + "mtu": "9100", + "alias": "Eth8/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet29": { - "index": "8", - "lanes": "29", - "description": "Eth8/2", - "mtu": "9100", - "alias": "Eth8/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "8", + "lanes": "29", + "description": "Eth8/2", + "mtu": "9100", + "alias": "Eth8/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet40": { - "index": "11", - "lanes": "40,41,42,43", - "fec": "rs", - "description": "Eth11", - "mtu": "9100", - "alias": "Eth11", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "11", + "lanes": "40,41,42,43", + "fec": "rs", + "description": "Eth11", + "mtu": "9100", + "alias": "Eth11", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet120": { - "index": "31", - "lanes": "120,121,122,123", - "fec": "rs", - "description": "Eth31", - "mtu": "9100", - "alias": "Eth31", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "31", + "lanes": "120,121,122,123", + "fec": "rs", + "description": "Eth31", + "mtu": "9100", + "alias": "Eth31", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet28": { - "index": "8", - "lanes": "28", - "description": "Eth8/1", - "mtu": "9100", - "alias": "Eth8/1", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "8", + "lanes": "28", + "description": "Eth8/1", + "mtu": "9100", + "alias": "Eth8/1", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet66": { - "index": "17", - "lanes": "66,67", - "description": "Eth17/2", - "mtu": "9100", - "alias": "Eth17/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "17", + "lanes": "66,67", + "description": "Eth17/2", + "mtu": "9100", + "alias": "Eth17/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet60": { - "index": "16", - "lanes": "60,61,62,63", - "fec": "rs", - "description": "Eth16", - "mtu": "9100", - "alias": "Eth16", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "16", + "lanes": "60,61,62,63", + "fec": "rs", + "description": "Eth16", + "mtu": "9100", + "alias": "Eth16", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet64": { - "index": "17", - "lanes": "64,65", - "description": "Eth17/1", - "mtu": "9100", - "alias": "Eth17/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "17", + "lanes": "64,65", + "description": "Eth17/1", + "mtu": "9100", + "alias": "Eth17/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet44": { - "index": "12", - "lanes": "44,45", - "description": "Eth12/1", - "mtu": "9100", - "alias": "Eth12/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "12", + "lanes": "44,45", + "description": "Eth12/1", + "mtu": "9100", + "alias": "Eth12/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet20": { - "index": "6", - "lanes": "20,21,22,23", - "fec": "rs", - "description": "Eth6", - "admin_status": "up", - "mtu": "9100", - "alias": "Eth6", - "pfc_asym": "off", - "speed": "100000", - "tpid": "0x8100" + "index": "6", + "lanes": "20,21,22,23", + "fec": "rs", + "description": "Eth6", + "admin_status": "up", + "mtu": "9100", + "alias": "Eth6", + "pfc_asym": "off", + "speed": "100000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet79": { - "index": "20", - "lanes": "79", - "description": "Eth20/3", - "mtu": "9100", - "alias": "Eth20/3", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "20", + "lanes": "79", + "description": "Eth20/3", + "mtu": "9100", + "alias": "Eth20/3", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet69": { - "index": "18", - "lanes": "69", - "description": "Eth18/2", - "mtu": "9100", - "alias": "Eth18/2", - "pfc_asym": "off", - "speed": "25000", - "tpid": "0x8100" + "index": "18", + "lanes": "69", + "description": "Eth18/2", + "mtu": "9100", + "alias": "Eth18/2", + "pfc_asym": "off", + "speed": "25000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet24": { - "index": "7", - "lanes": "24,25", - "description": "Eth7/1", - "mtu": "9100", - "alias": "Eth7/1", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "7", + "lanes": "24,25", + "description": "Eth7/1", + "mtu": "9100", + "alias": "Eth7/1", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet26": { - "index": "7", - "lanes": "26,27", - "description": "Eth7/2", - "mtu": "9100", - "alias": "Eth7/2", - "pfc_asym": "off", - "speed": "50000", - "tpid": "0x8100" + "index": "7", + "lanes": "26,27", + "description": "Eth7/2", + "mtu": "9100", + "alias": "Eth7/2", + "pfc_asym": "off", + "speed": "50000", + "tpid": "0x8100", + "mode": "routed" }, "Ethernet128": { - "index": "33", - "lanes": "128,129,130,131", - "description": "Eth33", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth33", - "pfc_asym": "off", - "speed": "40000" + "index": "33", + "lanes": "128,129,130,131", + "description": "Eth33", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth33", + "pfc_asym": "off", + "speed": "40000", + "mode": "routed" }, "Ethernet132": { - "index": "34", - "lanes": "132,133,134,135", - "description": "Eth34", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth34", - "pfc_asym": "off", - "speed": "25000" + "index": "34", + "lanes": "132,133,134,135", + "description": "Eth34", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth34", + "pfc_asym": "off", + "speed": "25000", + "mode": "routed" }, "Ethernet136": { - "index": "35", - "lanes": "136", - "description": "Eth35/1", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth35/1", - "pfc_asym": "off", - "speed": "10000" + "index": "35", + "lanes": "136", + "description": "Eth35/1", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth35/1", + "pfc_asym": "off", + "speed": "10000", + "mode": "routed" }, "Ethernet137": { - "index": "35", - "lanes": "137", - "description": "Eth35/2", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth35/2", - "pfc_asym": "off", - "speed": "10000" + "index": "35", + "lanes": "137", + "description": "Eth35/2", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth35/2", + "pfc_asym": "off", + "speed": "10000", + "mode": "routed" }, "Ethernet138": { - "index": "35", - "lanes": "138", - "description": "Eth35/3", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth35/3", - "pfc_asym": "off", - "speed": "10000" + "index": "35", + "lanes": "138", + "description": "Eth35/3", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth35/3", + "pfc_asym": "off", + "speed": "10000", + "mode": "routed" }, "Ethernet139": { - "index": "35", - "lanes": "139", - "description": "Eth35/4", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth35/4", - "pfc_asym": "off", - "speed": "10000" + "index": "35", + "lanes": "139", + "description": "Eth35/4", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth35/4", + "pfc_asym": "off", + "speed": "10000", + "mode": "routed" }, "Ethernet140": { - "index": "36", - "lanes": "140", - "description": "Eth36/1", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth36/1", - "pfc_asym": "off", - "speed": "25000" + "index": "36", + "lanes": "140", + "description": "Eth36/1", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth36/1", + "pfc_asym": "off", + "speed": "25000", + "mode": "routed" }, "Ethernet141": { - "index": "36", - "lanes": "141", - "description": "Eth36/2", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth36/2", - "pfc_asym": "off", - "speed": "25000" + "index": "36", + "lanes": "141", + "description": "Eth36/2", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth36/2", + "pfc_asym": "off", + "speed": "25000", + "mode": "routed" }, "Ethernet142": { - "index": "36", - "lanes": "142,143", - "description": "Eth36/3", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth36/3", - "pfc_asym": "off", - "speed": "50000" + "index": "36", + "lanes": "142,143", + "description": "Eth36/3", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth36/3", + "pfc_asym": "off", + "speed": "50000", + "mode": "routed" }, "Ethernet144": { - "index": "37", - "lanes": "144,145,146,147", - "description": "Eth37", - "tpid": "0x8100", - "mtu": "9100", - "alias": "Eth37", - "pfc_asym": "off", - "speed": "100000", - "fec": "rs" + "index": "37", + "lanes": "144,145,146,147", + "description": "Eth37", + "tpid": "0x8100", + "mtu": "9100", + "alias": "Eth37", + "pfc_asym": "off", + "speed": "100000", + "fec": "rs", + "mode": "routed" } -} +} \ No newline at end of file diff --git a/src/sonic-config-engine/tests/t0-sample-port-config.ini b/src/sonic-config-engine/tests/t0-sample-port-config.ini index 06898f1d79..17237f7d3e 100644 --- a/src/sonic-config-engine/tests/t0-sample-port-config.ini +++ b/src/sonic-config-engine/tests/t0-sample-port-config.ini @@ -1,33 +1,34 @@ -# name lanes alias -Ethernet0 29,30,31,32 fortyGigE0/0 -Ethernet4 25,26,27,28 fortyGigE0/4 -Ethernet8 37,38,39,40 fortyGigE0/8 -Ethernet12 33,34,35,36 fortyGigE0/12 -Ethernet16 41,42,43,44 fortyGigE0/16 -Ethernet20 45,46,47,48 fortyGigE0/20 -Ethernet24 5,6,7,8 fortyGigE0/24 -Ethernet28 1,2,3,4 fortyGigE0/28 -Ethernet32 9,10,11,12 fortyGigE0/32 -Ethernet36 13,14,15,16 fortyGigE0/36 -Ethernet40 21,22,23,24 fortyGigE0/40 -Ethernet44 17,18,19,20 fortyGigE0/44 -Ethernet48 49,50,51,52 fortyGigE0/48 -Ethernet52 53,54,55,56 fortyGigE0/52 -Ethernet56 61,62,63,64 fortyGigE0/56 -Ethernet60 57,58,59,60 fortyGigE0/60 -Ethernet64 65,66,67,68 fortyGigE0/64 -Ethernet68 69,70,71,72 fortyGigE0/68 -Ethernet72 77,78,79,80 fortyGigE0/72 -Ethernet76 73,74,75,76 fortyGigE0/76 -Ethernet80 105,106,107,108 fortyGigE0/80 -Ethernet84 109,110,111,112 fortyGigE0/84 -Ethernet88 117,118,119,120 fortyGigE0/88 -Ethernet92 113,114,115,116 fortyGigE0/92 -Ethernet96 121,122,123,124 fortyGigE0/96 -Ethernet100 125,126,127,128 fortyGigE0/100 -Ethernet104 85,86,87,88 fortyGigE0/104 -Ethernet108 81,82,83,84 fortyGigE0/108 -Ethernet112 89,90,91,92 fortyGigE0/112 -Ethernet116 93,94,95,96 fortyGigE0/116 -Ethernet120 97,98,99,100 fortyGigE0/120 -Ethernet124 101,102,103,104 fortyGigE0/124 +# name lanes alias mode +Ethernet0 29,30,31,32 fortyGigE0/0 trunk +Ethernet4 25,26,27,28 fortyGigE0/4 trunk +Ethernet8 37,38,39,40 fortyGigE0/8 trunk +Ethernet12 33,34,35,36 fortyGigE0/12 trunk +Ethernet16 41,42,43,44 fortyGigE0/16 trunk +Ethernet20 45,46,47,48 fortyGigE0/20 trunk +Ethernet24 5,6,7,8 fortyGigE0/24 trunk +Ethernet28 1,2,3,4 fortyGigE0/28 trunk +Ethernet32 9,10,11,12 fortyGigE0/32 trunk +Ethernet36 13,14,15,16 fortyGigE0/36 trunk +Ethernet40 21,22,23,24 fortyGigE0/40 trunk +Ethernet44 17,18,19,20 fortyGigE0/44 trunk +Ethernet48 49,50,51,52 fortyGigE0/48 trunk +Ethernet52 53,54,55,56 fortyGigE0/52 trunk +Ethernet52 53,54,55,56 fortyGigE0/52 trunk +Ethernet56 61,62,63,64 fortyGigE0/56 trunk +Ethernet60 57,58,59,60 fortyGigE0/60 trunk +Ethernet64 65,66,67,68 fortyGigE0/64 trunk +Ethernet68 69,70,71,72 fortyGigE0/68 trunk +Ethernet72 77,78,79,80 fortyGigE0/72 trunk +Ethernet76 73,74,75,76 fortyGigE0/76 trunk +Ethernet80 105,106,107,108 fortyGigE0/80 trunk +Ethernet84 109,110,111,112 fortyGigE0/84 trunk +Ethernet88 117,118,119,120 fortyGigE0/88 trunk +Ethernet92 113,114,115,116 fortyGigE0/92 trunk +Ethernet96 121,122,123,124 fortyGigE0/96 trunk +Ethernet100 125,126,127,128 fortyGigE0/100 trunk +Ethernet104 85,86,87,88 fortyGigE0/104 trunk +Ethernet108 81,82,83,84 fortyGigE0/108 trunk +Ethernet112 89,90,91,92 fortyGigE0/112 trunk +Ethernet116 93,94,95,96 fortyGigE0/116 trunk +Ethernet120 97,98,99,100 fortyGigE0/120 trunk +Ethernet124 101,102,103,104 fortyGigE0/124 trunk