Merge lp:~dooferlad/gomaasapi/subnets into lp:gomaasapi
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~dooferlad/gomaasapi/subnets |
| Merge into: | lp:gomaasapi |
| Diff against target: |
1150 lines (+990/-23) 7 files modified
jsonobject.go (+9/-0) testservice.go (+76/-13) testservice_spaces.go (+81/-0) testservice_subnets.go (+362/-0) testservice_test.go (+324/-10) testservice_utils.go (+105/-0) testservice_vlan.go (+33/-0) |
| To merge this branch: | bzr merge lp:~dooferlad/gomaasapi/subnets |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Dimiter Naydenov (community) | 2015-11-19 | Needs Fixing on 2015-11-19 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-11-23.
Description of the Change
Add subnets support.
- 67. By James Tunnicliffe on 2015-11-19
-
Removed unused function.
| James Tunnicliffe (dooferlad) wrote : | # |
Don't worry about the JSON stuff - it works just fine if you use structs because go can convert according to the type you give it. The de-dup stuff seems worth it though.
- 68. By James Tunnicliffe on 2015-11-19
-
Tidying up subnets.
- 69. By James Tunnicliffe on 2015-11-20
-
Subnets now have statistics support.
Fixed up reserved/unreserved ranges after improving tests.
Tidied up some old tests. - 70. By James Tunnicliffe on 2015-11-23
-
Spaces added (for the structs - may never need the API)
Subnets now can be embedded in a nodes JSON. - 71. By James Tunnicliffe on 2015-11-23
-
Added test for node subnets mapping.
- 72. By James Tunnicliffe on 2015-11-24
-
Pretty JSON is easier to read.
Fixed api/1.0/subnets/ 1/?op=reserved_ ip_ranges when there is 1 reserved address. - 73. By James Tunnicliffe on 2015-11-24
-
Fixed incorrect JSON name for space
- 74. By James Tunnicliffe on 2015-11-24
-
New addresses default to having a purpose of "assigned-ip"
Added AddFixedAddressRange call.
De-duplicated some code. - 75. By James Tunnicliffe on 2015-11-24
-
Purpose back to being an array.
Fixed possible out of range error. - 76. By James Tunnicliffe on 2015-11-26
-
AddFixedAddress
Range moved to the server rather than directly acting on a subnet. - 77. By James Tunnicliffe on 2015-11-26
-
suite.server.
SetNodeNetworkL ink now takes a node.SystemID rather than a node. - 78. By James Tunnicliffe on 2015-11-26
-
Fixed subnets/
1/?op=reserved_ ip_ranges when no IP addresses had been explicitly assigned. - 79. By James Tunnicliffe on 2015-11-27
-
Ensure that all arrays in a posted subnet are non-nil.
Fix typo.
Simplify net.IP --> uint64 logic.

Most of it looks good, apart from a few concerns around marshalling/ unmarshalling for numbers and reducing some duplication.