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

Added block of code to reserve n number of IP's #14

Merged
merged 3 commits into from
May 4, 2018
Merged

Added block of code to reserve n number of IP's #14

merged 3 commits into from
May 4, 2018

Conversation

saiprasannasastry
Copy link
Contributor

add a method to convert mac address in required format for NIOS
@jkraj please review

Copy link
Collaborator

@jkraj jkraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like u have rebase here as well I think


gatewayIP, err := objMgr.GetFixedAddress(networkViewName, cidr, gateway, "")
if err == nil && gatewayIP != nil {
fmt.Printf("Gateway alreadt created")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already

for i := 1; i <= reserveIP; i++ {
_, err = objMgr.AllocateIP(networkViewName, cidr, gateway, "00:00:00:00:00:00", "")
if err != nil {
return fmt.Errorf("gateway creation in network block failed in network view(%s):%s", networkViewName, err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reservation in network block failed

saiprasannasastry and others added 2 commits May 4, 2018 15:50
added a check to format the mac address in required format for NIOS
@jkraj jkraj merged commit 41e0ff4 into infobloxopen:master May 4, 2018
@saiprasannasastry saiprasannasastry deleted the IPAssociation branch May 9, 2018 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants