Skip to content

[DPB] Remove unnecessary prompts #3877

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chiourung
Copy link

@chiourung chiourung commented May 9, 2025

What I did

admin@SPINE-1-AS7326-56X-4-8U:~$ sudo config int breakout Ethernet76 "2x50G" -y

Running Breakout Mode : 1x100G[40G]
Target Breakout Mode : 2x50G

Ports to be deleted :
 {
    "Ethernet76": "100000"
}
Ports to be added :
 {
    "Ethernet76": "50000",
    "Ethernet78": "50000"
}
sonic_yang(6):Note: Below table(s) have no YANG models: REST_SERVER
Below Config can not be verified, It may cause harm to the system
 {}
Do you wish to Continue? [y/N]:

The unverified config is empty, it would not cause harm to the system.

How I did it

check the length of the unverified table

How to verify it

admin@SPINE-1-AS7326-56X-4-8U:~$ sudo config int breakout Ethernet76 "2x50G" -y

Running Breakout Mode : 1x100G[40G]
Target Breakout Mode : 2x50G

Ports to be deleted :
 {
    "Ethernet76": "100000"
}
Ports to be added :
 {
    "Ethernet76": "50000",
    "Ethernet78": "50000"
}
sonic_yang(6):Note: Below table(s) have no YANG models: REST_SERVER
Breakout process got successfully completed.
Please note loaded setting will be lost after system reboot. To preserve setting, run `config save`.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

```
admin@SPINE-1-AS7326-56X-4-8U:~$ sudo config int breakout Ethernet76 "2x50G" -y

Running Breakout Mode : 1x100G[40G]
Target Breakout Mode : 2x50G

Ports to be deleted :
 {
    "Ethernet76": "100000"
}
Ports to be added :
 {
    "Ethernet76": "50000",
    "Ethernet78": "50000"
}
sonic_yang(6):Note: Below table(s) have no YANG models: REST_SERVER
Below Config can not be verified, It may cause harm to the system
 {}
Do you wish to Continue? [y/N]:
```

The unverified config is empty, it would not cause harm to the system.
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants