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
|
Public bool
|
||||||
CIDR string
|
CIDR string
|
||||||
ReservedPorts []int
|
ReservedPorts []int
|
||||||
|
DynamicPorts []string
|
||||||
MBits int
|
MBits int
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue