-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add support for NSX-V Edge Gateway DHCP relay settings #271
Conversation
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.
CHANGELOG.md
Outdated
@@ -28,6 +28,8 @@ | |||
* Added IP set handling functions `CreateNsxvIpSet`, `UpdateNsxvIpSet`, `GetNsxvIpSetByName`, | |||
`GetNsxvIpSetById`, `GetNsxvIpSetByNameOrId`, `GetAllNsxvIpSets`, `DeleteNsxvIpSetById`, | |||
`DeleteNsxvIpSetByName` [#269](https://github.com/vmware/go-vcloud-director/pull/269) | |||
* Added `UpdateDhcpRelay`, `GetDhcpRelay` and `ResetDhcpRelay()` methods for Edge Gatway DHCP relay |
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.
* Added `UpdateDhcpRelay`, `GetDhcpRelay` and `ResetDhcpRelay()` methods for Edge Gatway DHCP relay | |
* Added `UpdateDhcpRelay`, `GetDhcpRelay` and `ResetDhcpRelay` methods for Edge Gatway DHCP relay |
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.
Fixed
It does probably. I got split brain while looking at load balancers. But in the end they don't have NSXV anywhere. Changed. |
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.
LGTM now!
check.Assert(err, IsNil) | ||
|
||
parentEntity = vcd.org.Org.Name + "|" + vcd.vdc.Vdc.Name + "|" + vcd.config.VCD.EdgeGateway | ||
PrependToCleanupList(check.TestName(), "dhcpRelayConfig", parentEntity, check.TestName()) |
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 add a comment about using PrependToCleanupList
instead of Add, for future reference
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.
Added
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.
LGTM, just one changed needed
govcd/nsxv_dhcprelay.go
Outdated
if err != nil { | ||
return err | ||
} | ||
|
||
return nil |
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.
just return err
is sufficient
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.
Changed. Although this had its reason. It is about clearly distinguishing the "happy" and "bad" path on function.
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.
LGTM
This PR adds support for Edge Gateway DHCP relay setting management using 3 methods:
UpdateDhcpRelay
,GetDhcpRelay
andResetDhcpRelay
Note. Test suite passed on 9.5 and 10.