Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/Networking/v2/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ public function postNetwork(): array
'method' => 'POST',
'jsonKey' => 'network',
'params' => [
'name' => $this->params->name('network'),
'shared' => $this->params->shared(),
'adminStateUp' => $this->params->adminStateUp(),
'routerAccessible' => $this->params->routerAccessibleJson(),
'tenantId' => $this->params->tenantId(),
'name' => $this->params->name('network'),
'shared' => $this->params->shared(),
'adminStateUp' => $this->params->adminStateUp(),
'routerAccessible' => $this->params->routerAccessibleJson(),
'tenantId' => $this->params->tenantId(),
'providerNetworkType' => $this->params->providerNetworkType(),
'providerPhysicalNetwork' => $this->params->providerPhysicalNetwork(),
],
];
}
Expand Down
20 changes: 20 additions & 0 deletions src/Networking/v2/Params.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,4 +723,24 @@ public function type(): array
'description' => 'The type of health monitor. Must be one of TCP, HTTP, HTTPS',
];
}

public function providerNetworkType(): array
{
return [
'type' => self::STRING_TYPE,
'location' => self::JSON,
'sentAs' => 'provider:network_type',
'description' => 'The type of physical network that this network should be mapped to. For example, flat, vlan, vxlan, or gre. Valid values depend on a networking back-end.',
];
}

public function providerPhysicalNetwork(): array
{
return [
'type' => self::STRING_TYPE,
'location' => self::JSON,
'sentAs' => 'provider:physical_network',
'description' => 'The physical network where this network should be implemented. The Networking API v2.0 does not provide a way to list available physical networks. For example, the Open vSwitch plug-in configuration file defines a symbolic name that maps to specific bridges on each compute host.',
];
}
}