Add dynamic ports to api resources; copy dynamic ports into offer

This commit is contained in:
Chris Bednarski
2015-09-23 18:01:49 -07:00
parent 5449c8290b
commit 1b449fd89b
2 changed files with 2 additions and 0 deletions

View File

@@ -16,5 +16,6 @@ type NetworkResource struct {
Public bool
CIDR string
ReservedPorts []int
DynamicPorts []string
MBits int
}

View File

@@ -162,6 +162,7 @@ func (idx *NetworkIndex) AssignNetwork(ask *NetworkResource) (out *NetworkResour
Device: n.Device,
IP: ipStr,
ReservedPorts: ask.ReservedPorts,
DynamicPorts: ask.DynamicPorts,
}
// Check if we need to generate any ports