-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add priorityMechanisms chain element #1384
Add priorityMechanisms chain element #1384
Conversation
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
"github.com/networkservicemesh/sdk/pkg/networkservice/core/next" | ||
) | ||
|
||
type priorityMechanismsClient struct { |
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.
How do we plan to use this in forwarder-vpp app?
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.
We add it to the forwarder's chain, for example after filtermechanisms
- https://github.com/networkservicemesh/sdk-vpp/blob/main/pkg/networkservice/chains/forwarder/server.go#L152
To pass values, we will use NSM_MECHANISM_PRIORITY
env that is a prioritized list ([]string
) - the first value has the highest priority.
For example, if we have
- name: NSM_MECHANISM_PRIORITY
value: ipsec
this means that the mechanismPreferences order will be: { IPSec, Wireguard }
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.
Looks good to me.
/cc @edwarnicke
517f416
to
a89233e
Compare
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
a89233e
to
d209c31
Compare
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1384 Commit: 77ae7ab Author: Artem Glazychev Date: 2022-12-06 16:30:00 +0700 Message: - Add priorityMechanisms chain element (#1384) * Add priorityMechanisms chain element Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: Artem Glazychev artem.glazychev@xored.com
Description
This PR adds
priorityMechanisms
chain element.The input is a list of mechanisms by priority. On the Request, the chain element sorts the mechanism preferences according to these priorities.
This element will be used on the forwarder.
Issue link
networkservicemesh/sdk-vpp#638
How Has This Been Tested?
Types of changes