Skip to content

[Dynamic Port Breakout]validate breakout mode exactly #1341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[Dynamic Port Breakout]validate breakout mode exactly #1341

wants to merge 1 commit into from

Conversation

chiourung
Copy link

@chiourung chiourung commented Dec 29, 2020

  1. If the supported breakout mode is 1x100G[40G], then it can accept 1x100G.
    1x100G[40G] => The port can support speed 100G and 40G
    1x100G => The port just support 100G

  2. If the supported breakout mode is 1x100G(4), then it can accept 1x100G.
    1x100G => the number of hw lanes is default
    1x100G(4) => the number of hw lanes should be 4
    If the default numbers of hw lanes is not 4, the 1x100G and 1x100G(4) are different.

Signed-off-by: chiourung_huang [email protected]

- What I did
validate breakout mode exactly

- How I did it

- How to verify it

- Previous command output (if the output of a command-line utility has changed)
If the supported breakout mode is 1x100G[40G], then it can accept 1x100G and save 1x100G to redis-db.

root@as7816-64x:/# config interface breakout Ethernet0 1x100G -f -y

Running Breakout Mode : 4x25G
Target Breakout Mode : 1x100G

Ports to be deleted :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Ports to be added :
{
"Ethernet0": "100000"
}

After running Logic to limit the impact

Final list of ports to be deleted :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Final list of ports to be added :
{
"Ethernet0": "100000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-extension', 'sonic-interface', 'sonic-loopback-interface', 'sonic-port', 'sonic-portchannel', 'sonic-types', 'sonic-vlan']
Note: Below table(s) have no YANG models:
TACPLUS_SERVER, DEVICE_METADATA, BGP_PEER_RANGE, PORTCHANNEL_MEMBER, FLEX_COUNTER_TABLE, SYSLOG_SERVER, CRM, CONTAINER_FEATURE, BGP_NEIGHBOR, PORTCHANNEL_INTERFACE, MGMT_INTERFACE, NTP_SERVER, DEVICE_NEIGHBOR_METADATA, TELEMETRY, DEVICE_NEIGHBOR, FEATURE, BREAKOUT_CFG, DHCP_SERVER, MGMT_PORT, RESTAPI, VERSIONS, BUFFER_POOL, BUFFER_PROFILE,
Breakout process got successfully completed.
Please note loaded setting will be lost after system reboot. To preserve setting, run config save.
root@as7816-64x:/# redis-cli -n 4 hgetall "BREAKOUT_CFG|Ethernet0"

  1. "brkout_mode"
  2. "1x100G"

- New command output (if the output of a command-line utility has changed)
root@as7816-64x:/# config interface breakout Ethernet0 1x100G -f -y
[ERROR] Target mode 1x100G is not available for the port Ethernet0
Aborted!

@chiourung
Copy link
Author

Fix in #1440

@chiourung chiourung closed this Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant