Add dynamic ports to api resources; copy dynamic ports into offer
This commit is contained in:
parent
1654d08fca
commit
0060ac933f
|
@ -16,5 +16,6 @@ type NetworkResource struct {
|
|||
Public bool
|
||||
CIDR string
|
||||
ReservedPorts []int
|
||||
DynamicPorts []string
|
||||
MBits int
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue