Skip to content
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

Update main.py #960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update main.py #960

wants to merge 1 commit into from

Conversation

zhouglgh
Copy link

'state == ok ' was no longer supported now.

- What I did

- How I did it

- How to verify it

- 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)

'state == ok ' was  no longer supported now.
@@ -2214,7 +2214,7 @@ def bind(ctx, interface_name, vrf_name):
state_db = SonicV2Connector(host='127.0.0.1')
state_db.connect(state_db.STATE_DB, False)
_hash = '{}{}'.format('INTERFACE_TABLE|', interface_name)
while state_db.get(state_db.STATE_DB, _hash, "state") == "ok":
while state_db.get_all(state_db.STATE_DB, _hash) != None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand this change. Why do you say it is no longer supported? Is there any PR that you can point which resulted in this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example:
We have Vrf10 and Ethernet10 with 10.10.10.10.
using commands "sudo config interface bind Ethernet10 Vrf10" will lead to an error: There is no "master Vrf10" when use command "ip a show Ethernet10" to check its master.

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update PR title to be more descriptive of the patch.

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.

3 participants