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 1654d08fca
commit 0060ac933f
2 changed files with 2 additions and 0 deletions

View File

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

View File

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