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

Do you plan to add dual stack support for cmd-nse-icmp-responder? #4623

Closed
ljkiraly opened this issue Feb 10, 2022 · 7 comments
Closed

Do you plan to add dual stack support for cmd-nse-icmp-responder? #4623

ljkiraly opened this issue Feb 10, 2022 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@ljkiraly
Copy link
Contributor

Hello,

We plan to do some dual stack testing. I know that is supported by API and I already added some support to cmd-remote-vlan-nse. As I see there are IPv6 only tests already.

Do you plan to add support for dual stack in cmd-nse-icmp-responder?

I would like to be in alignment in cmd-remote-vlan-nse with the cmd-nse-icmp-responder. Currently I am using two environment variable to set the CIDR: 'NSM_CIDR_PREFIX' and 'NSM_IPV6_PREFIX'

One option is to keep it as is or I can change the cmd-remote-vlan-nse to accept a pair of address range (IPv4 and/or IPv6) in NSM_CIDR_PREFIX and parse it.

--
Laszlo

@ljkiraly ljkiraly added the question Further information is requested label Feb 10, 2022
@ljkiraly
Copy link
Contributor Author

ljkiraly commented Feb 10, 2022

By the way I am gladly implement the changes in cmd-nse-icmp-responder and add some dual-stack TCs if you have some concept.

@denis-tingaikin
Copy link
Member

/cc @edwarnicke

@edwarnicke
Copy link
Member

@ljkiraly Dual stack testing in integration would be most welcome. Please do note that in the cmd-forwarder-vpp testing... all tests are dual stack :) I suspect you are correct that you will need to add a bit to cmd-nse-icmp-responder to get dual stack working. I'd suggest looking at: https://github.com/networkservicemesh/cmd-forwarder-vpp/blob/69c5a02595841f45cfc7fd303097f53e4e4a386c/internal/tests/suite_kernel_test.go#L107-L108

It basically shows that you can simply configure two ipams, each with different prefixes and two IP addresses will be issued.

@ljkiraly
Copy link
Contributor Author

Thanks @edwarnicke ! I missed these cmd-forwarder-vpp tests.

I will raise the PR with dual stack support for cmd-nse-icmp-responder soon.

@ljkiraly ljkiraly moved this to Done in Release 1.3.0 Mar 22, 2022
@denis-tingaikin
Copy link
Member

@edwarnicke, @ljkiraly Should we create another nse repo to demonstrate dual stack example? I think the more examples of nses we have the better

@edwarnicke
Copy link
Member

I'd suggest we simply make this NSE able to handle multiple prefixes (similar to how cmd-forwarder-vpp does it). Would be fairly simple, and allow us to do dual stack pretty trivially, without hardcoding the IPv4 or Ipv6-ness of things.

@edwarnicke edwarnicke reopened this Apr 26, 2022
@denis-tingaikin
Copy link
Member

OK, as I can see we already have PR for this networkservicemesh/cmd-nse-icmp-responder#407 👍

@ljkiraly ljkiraly closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

3 participants