-
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
singlepointipam can work with IP ranges #1382
base: main
Are you sure you want to change the base?
Conversation
df43956
to
37477bf
Compare
69b052b
to
25b5e6b
Compare
4285c16
to
0e2b98f
Compare
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.
@zolug if I read the code correctly, basically these changes are needed to pre-exclude some of the IP addresses from the ippool for the connection.
Does it look correct?
Question: Is it possible to use https://github.com/networkservicemesh/api/blob/main/pkg/api/networkservice/connectioncontext.proto#L69 to solve the problem? See at chain element https://github.com/networkservicemesh/sdk/tree/main/pkg/networkservice/common/excludedprefixes |
@denis-tingaikin Basically yes, but the goal is to split up a particular network between multiple independently operating singlepointipams. |
@zolug OK, now I see the motivation. So, now let's figure out if is it possible to re-use https://github.com/networkservicemesh/sdk/tree/main/pkg/networkservice/common/excludedprefixes chain element. |
I'll try to list my points, but I don't think that's really suitable. Please feel free to weigh in and correct me. -It's not just about excluding a few IP addresses but splitting up networks into ranges to be used by multiple independent singlepointipams or VLAN Remote NSEs. This could mean many-many excluded IPs for example (unless cleverly describing them with multiple networks). So basically it felt more natural to modify the IPAM prefix configuration itself, both because it seems to have limited impact on NSM and the configuration feels more straightforward. |
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.
I think it can be merged.
Would you like to add an encoder for IP ranges for envoyconfig
to the sdk/pkg/tools?
Specifically, do you want to add something like encoding.TextUnMarshaller so envconfig can unmarshal for you automatically: https://github.com/kelseyhightower/envconfig#supported-struct-field-types |
@zolug Do you have any updates on this? |
Related issue: cmd-nse-remote-vlan/110 Signed-off-by: Lugossy Zoltan <[email protected]>
Related issue: cmd-nse-remote-vlan/110
Signed-off-by: Lugossy Zoltan [email protected]
Description
ippool extended so that IP addresses from an IP pool could be added to the pool.
singlepointipam modified to also support allocating IPs based on IP ranges.
Issue link
networkservicemesh/cmd-nse-remote-vlan#110
How Has This Been Tested?
Types of changes