-
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
adapt to use connectioncontextkernel from sdk-kernel #232
Conversation
a6f8d2e
to
b1c6890
Compare
@pperiyasamy When I attempt to test this with downstream cmd-forwarder-vpp... its failing. You might want to try it yourself by checking out this pr into cmd-forwarder-vpp/local/sdk-vpp and updating the cmd-forwarder-vpp/go.mod to poing sdk-vpp to it with a replace directive. There is some helpful information on debugging here: The other trick I use sometimes is to use: if clientMechanism != kernel.MECHANISM {
continue
} and if endpointMechanism != kernel.MECHANISM {
continue
} to restrict to only running across Kernel/Kernel cases (makes debugging much easier because you are only looking at the logs for that case). |
3f15f9c
to
d2f8642
Compare
@edwarnicke ok , thanks, This is a very handy tool. I tried to run the test with this sdk-vpp version and looks test case started failing with error.
The PR uses |
@pperiyasamy Ah... the |
Basically... the mechanism.InterfaceName(conn) is computing the interface name based on the current connection id... but if you are a forwarder... you should be computing that interface based on the connection id of the NSE or NSC you are servicing, which will be either next or previous in the connection.Path. So just calling mechanism.InterfaceName(conn) won't give you the right result in the context of a forwarder. |
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
d2f8642
to
d98f2a0
Compare
Fixes #231
Signed-off-by: Periyasamy Palanisamy periyasamy.palanisamy@est.tech