mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Add dynamic ports to api resources; copy dynamic ports into offer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user