Description
Configuration for an interface after the applying breakout has a different format in the config_db.json file.
Steps to reproduce the issue
- Show configuration of the interface in config_db.json before breakout:
more /etc/sonic/config_db.json
... output omitted...
"Ethernet36": {
"brkout_mode": "1x100G[50G,40G,25G,10G]"
},
"Ethernet104": {
"brkout_mode": "1x100G[50G,40G,25G,10G]
},
"Ethernet12": {
"brkout_mode": "1x100G[50G,40G,25G,10G]"
}
... output omitted...
- Breakout interface:
config interface breakout Etherne96 2x50G
- Unbreakout interface to 1x100G mode:
config interface breakout Ethernet96 1x100G
- Save configuration
- Check config_db.json
Describe the results you received
Configuration for the same interface with the same breakout mode are differents after the breakout/unbreakout apply.
"Ethernet36": {
"brkout_mode": "1x100G[50G,40G,25G,10G]"
},
"Ethernet104": {
"brkout_mode": "1x100G"
},
"Ethernet12": {
"brkout_mode": "1x100G[50G,40G,25G,10G]"
}
Describe the results you expected
The configuration string for the same breakout mode in the config_db.json file must be the same before and after applying the breakout mode to the interface.
Output of show version
SONiC Software Version: SONiC.dpb_qa_image_01_02_2021.0-904ec5a17
Distribution: Debian 10.7
Kernel: 4.19.0-9-2-amd64
Build commit: 904ec5a17
Build date: Mon Feb 1 19:55:57 UTC 2021
Built by: vadymh@r-build-sonic03
Platform: x86_64-mlnx_msn2700-r0
HwSKU: Mellanox-SN2700
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1550X12437
Uptime: 15:15:44 up 26 min, 2 users, load average: 4.44, 5.34, 4.34
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-mlnx dpb_qa_image_01_02_2021.0-904ec5a17 0be29560ed94 539MB
docker-syncd-mlnx latest 0be29560ed94 539MB
docker-sflow dpb_qa_image_01_02_2021.0-904ec5a17 bb35e3500d6c 405MB
docker-sflow latest bb35e3500d6c 405MB
docker-snmp dpb_qa_image_01_02_2021.0-904ec5a17 a0382194454f 435MB
docker-snmp latest a0382194454f 435MB
docker-dhcp-relay dpb_qa_image_01_02_2021.0-904ec5a17 9fbff561871b 401MB
docker-dhcp-relay latest 9fbff561871b 401MB
docker-teamd dpb_qa_image_01_02_2021.0-904ec5a17 57194fe91511 404MB
docker-teamd latest 57194fe91511 404MB
docker-nat dpb_qa_image_01_02_2021.0-904ec5a17 83b8bbc09610 407MB
docker-nat latest 83b8bbc09610 407MB
docker-router-advertiser dpb_qa_image_01_02_2021.0-904ec5a17 6e4213d19ae2 394MB
docker-router-advertiser latest 6e4213d19ae2 394MB
docker-platform-monitor dpb_qa_image_01_02_2021.0-904ec5a17 2f3634c6050c 684MB
docker-platform-monitor latest 2f3634c6050c 684MB
docker-lldp dpb_qa_image_01_02_2021.0-904ec5a17 835b3f7e2b2a 434MB
docker-lldp latest 835b3f7e2b2a 434MB
docker-database dpb_qa_image_01_02_2021.0-904ec5a17 db5bfb2a9fe7 394MB
docker-database latest db5bfb2a9fe7 394MB
docker-sonic-mgmt-framework dpb_qa_image_01_02_2021.0-904ec5a17 8b93727ceace 612MB
docker-sonic-mgmt-framework latest 8b93727ceace 612MB
docker-orchagent dpb_qa_image_01_02_2021.0-904ec5a17 9ea288be1cde 423MB
docker-orchagent latest 9ea288be1cde 423MB
docker-macsec dpb_qa_image_01_02_2021.0-904ec5a17 9ba4cccc5979 408MB
docker-macsec latest 9ba4cccc5979 408MB
docker-sonic-telemetry dpb_qa_image_01_02_2021.0-904ec5a17 ce3dfd9de85b 469MB
docker-sonic-telemetry latest ce3dfd9de85b 469MB
docker-fpm-frr dpb_qa_image_01_02_2021.0-904ec5a17 3a79df1df250 422MB
docker-fpm-frr latest 3a79df1df250 422MB
sonic_dump_r-qa-sw-eth-53_20210202_151530.tar.gz
Description
Configuration for an interface after the applying breakout has a different format in the config_db.json file.
Steps to reproduce the issue
Describe the results you received
Configuration for the same interface with the same breakout mode are differents after the breakout/unbreakout apply.
Describe the results you expected
The configuration string for the same breakout mode in the config_db.json file must be the same before and after applying the breakout mode to the interface.
Output of show version
sonic_dump_r-qa-sw-eth-53_20210202_151530.tar.gz