Skip to content

Commit

Permalink
Name fix (#29)
Browse files Browse the repository at this point in the history
* Iterate through entire subent range when creating leases

* Small name clarifications with ID's in comments
  • Loading branch information
Ethan Kaley authored and king-jam committed Nov 22, 2016
1 parent fe8585a commit 38a255c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type LeaseV1 struct {
Name string `json:"name"`
Tags []string `json:"tags"`
Metadata interface{} `json:"metadata"`
Subnet string `json:"subnet"`
Reservation string `json:"reservation"`
Subnet string `json:"subnet"` //SubnetID
Reservation string `json:"reservation"` //ReservationID
Address string `json:"address"`
}

Expand Down
2 changes: 1 addition & 1 deletion resources/reservation.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ReservationV1 struct {
Name string `json:"name"`
Tags []string `json:"tags"`
Metadata interface{} `json:"metadata"`
Subnet string `json:"subnet"`
Subnet string `json:"subnet"` //Subnet ID
}

// Type returns the resource type for use in rendering HTTP response headers.
Expand Down
2 changes: 1 addition & 1 deletion resources/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type SubnetV1 struct {
Name string `json:"name"`
Tags []string `json:"tags"`
Metadata interface{} `json:"metadata"`
Pool string `json:"pool"`
Pool string `json:"pool"` //PoolID
Start string `json:"start"`
End string `json:"end"`
}
Expand Down

0 comments on commit 38a255c

Please sign in to comment.