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

make DefaultNode Interface Name Check a noop #1276

Merged
merged 4 commits into from Mar 13, 2023

Conversation

steiler
Copy link
Collaborator

@steiler steiler commented Mar 2, 2023

This is a quickfix for #1275 making InterfaceNameCheck on DefaultNode a NOOP

@@ -175,15 +174,6 @@ func (d *DefaultNode) DeleteNetnsSymlink() error {
// Checks the name pattern that is common for VM-based nodes. Container-based nodes override this function to implement
// custom name checks.
Copy link

Choose a reason for hiding this comment

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

You may want to change this comment as well as I think it could be misleading.

Btw. thanks for the link to the build in #1275.

@hellt
Copy link
Member

hellt commented Mar 2, 2023

@steiler what if we had just a function named "vmIntfCheck" that the VR kinds would use in the override function to all use the same ethX pattern?

@steiler
Copy link
Collaborator Author

steiler commented Mar 6, 2023

Yes, that is the other option.

Further we could also consolidate the SaveConfig, which is also the same for all the vr instances.
But thats the same there either make it an explicit call or bundle it in another indirect struct.

@hellt
Copy link
Member

hellt commented Mar 12, 2023

Hi @steiler
PTAL

@steiler
Copy link
Collaborator Author

steiler commented Mar 13, 2023

LGTM

@hellt hellt merged commit 05518a2 into srl-labs:main Mar 13, 2023
15 checks passed
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.

None yet

3 participants