-
Notifications
You must be signed in to change notification settings - Fork 19
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
Delete tap interfaces on startup #545
base: main
Are you sure you want to change the base?
Conversation
87a5436
to
71607aa
Compare
71607aa
to
6e37e82
Compare
Signed-off-by: Artem Glazychev <[email protected]>
6e37e82
to
193d7bd
Compare
@denis-tingaikin @edwarnicke |
|
||
dumpOption := &dumptool.DumpOption{ | ||
Ctx: ctx, | ||
PodName: opts.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually just a prefix for the tag? If so, could we name it something like TagPrefix rather than PodName? With the advent of networkservicemesh/cmd-nse-simple-vl3-docker#1 we will be using SDK components in non-K8s environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Thank you.
I've simplified a little this PR - now TagPrefix is not passed to the mechanism chain element as parameter.
Instead, there is only DumpNSM
func as option, that applies OnDump
func of the mechainsm
Signed-off-by: Artem Glazychev <[email protected]>
Delete tap interfaces on startup
Now each mechanism is responsible for dumping and deleting its interfaces on startup by tag.
In this PR
kernel
mechanism callsonDump
Issue: #512
Signed-off-by: Artem Glazychev [email protected]