sonic-buildimage/platform/vs/docker-sonic-vs
Sangita Maity 18263c99dd
[DPB|master] Update Dynamic Port Breakout Logic for flexible alias support a… (#6831)
To fix [DPB| wrong aliases for interfaces](https://github.com/Azure/sonic-buildimage/issues/6024) issue, implimented flexible alias support [design doc](https://github.com/Azure/SONiC/pull/749)

> [[dpb|config] Fix the validation logic of breakout mode](https://github.com/Azure/sonic-utilities/pull/1440) depends on this

#### How I did it

1. Removed `"alias_at_lanes"` from port-configuration file(i.e. platfrom.json) 
2. Added dictionary to "breakout_modes" values. This defines the breakout modes available on the platform for this parent port, and it maps to the alias list. The alias list presents the alias names for individual ports in order under this breakout mode.
```
{
    "interfaces": {
        "Ethernet0": {
            "index": "1,1,1,1",
            "lanes": "0,1,2,3",
            "breakout_modes": {
                "1x100G[40G]": ["Eth1"],
                "2x50G": ["Eth1/1", "Eth1/2"],
                "4x25G[10G]": ["Eth1/1", "Eth1/2", "Eth1/3", "Eth1/4"],
                "2x25G(2)+1x50G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"],
                "1x50G(2)+2x25G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"]
            }
        }
}
```
#### How to verify it
`config interface breakout`

Signed-off-by: Sangita Maity <samaity@linkedin.com>
2021-02-26 00:13:33 -08:00
..
50-default.conf [virtualswitch]: build docker-sonic-vs docker based on SAI virtual switch (#1065) 2017-10-23 22:01:42 -07:00
asic_table.json [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
buffermgrd.sh [Dynamic buffer calc] Support dynamic buffer calculation (#6194) 2020-12-13 11:35:39 -08:00
database_config.json [vstest]VS test for VOQ System ports (#5862) 2020-12-02 10:31:43 -08:00
default_chassis_cfg.json [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
Dockerfile.j2 [sonic-host-service] Move to sonic-host-services package (#6273) 2021-02-08 19:35:08 -08:00
hostname.j2 [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
hwsku.json Add support to VS platform for platform.json and DPB CLI Tests (#5192) 2020-08-20 17:10:58 -07:00
orchagent.sh [synchronous-mode] Add template file for synchronous mode (#5644) 2020-10-23 13:08:35 -07:00
platform.json [DPB|master] Update Dynamic Port Breakout Logic for flexible alias support a… (#6831) 2021-02-26 00:13:33 -08:00
port_breakout_config_db.json Introducing port_breakout_config_db.json, which will be used when you breakout port with -l option (#6034) 2020-11-25 12:47:50 -08:00
sonic-dev.gpg.key [vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
start.sh sonic-config-engine uses libswsscommon instead of swsssdk (#6406) 2021-01-20 12:06:08 -08:00
supervisord.conf [submodule]: swss Tunnel Manager changes (#5843) 2020-12-26 11:17:18 -08:00