-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove duplicated IPAM code #135
base: main
Are you sure you want to change the base?
Remove duplicated IPAM code #135
Conversation
09c07e3
to
042c9c7
Compare
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
042c9c7
to
b4bfb22
Compare
main.go
Outdated
@@ -157,7 +155,7 @@ func main() { | |||
log.FromContext(ctx).Infof("executing phase 3: parsing network prefixes for ipam") | |||
// ******************************************************************************** | |||
|
|||
ipamChain := getIPAMChain(ctx, cfg.CidrPrefix) | |||
ipamChain := groupipam.NewServer(cfg.CidrPrefix) |
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.
ipamChain := groupipam.NewServer(cfg.CidrPrefix) |
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.
Please do it inline at 170
Also note, that here we should use singlepointipam
.
Consider to use option groupipam.WithCustomImapServer(singlepointipam.NewServer)
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.
@denis-tingaikin done
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
if len(cfg.CidrPrefix) != 1 { | ||
logrus.Fatal("Only one CIDR prefix group expected") | ||
} |
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.
Why do we need to check it?
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.
@denis-tingaikin As far as I remember we discussed to add this check because we had agreed on changing CidrPrefix
type from []string
to cidr.Groups
.
@zolug Would you have a look at these changes? Don't you mind if we go with this approach? |
Hi! |
@zolug Agreed, lets postpone this for cmd-nse-remote-vlan |
Related to networkservicemesh/sdk#1409