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

Handle edit_prefix without VRF #1337

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Conversation

garberg
Copy link
Member

@garberg garberg commented Oct 6, 2023

Fixed a bug in the backend where the edit_prefix operation would fail for prefixes in a VRF where the VRF wasn't included in the prefix attributes.

Fixed a bug in the backend where the edit_prefix operation would fail
for prefixes in a VRF where the VRF wasn't included in the prefix
attributes.
if 'vrf_name' in attr:
del(attr['vrf_name'])
attr['vrf_id'] = vrf['id']
# Handle VRF in attributes - find the correct one and remove bad VRF keys.

Choose a reason for hiding this comment

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

line too long (82 > 79 characters)

@garberg
Copy link
Member Author

garberg commented Oct 6, 2023

LGTM - will check CI when rebased into py3-branch.

@garberg garberg merged commit a8a78a2 into SpriteLink:master Oct 6, 2023
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants