Fix wrong option to define provider segmentation id

Fix the regression introduced by migration from neutron CLI to
openstack CLI.

Closes-Bug: #2072332
Change-Id: Id719358010f6400c010f5aaca834d0a5ed46b871
This commit is contained in:
Takashi Kajinami 2024-07-08 12:45:39 +09:00
parent ebd50d6444
commit 035ecbaa3e
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ Puppet::Type.type(:neutron_network).provide(
if @resource[:provider_segmentation_id]
opts << \
"--provider-segmentation-id=#{@resource[:provider_segmentation_id]}"
"--provider-segment=#{@resource[:provider_segmentation_id]}"
end
if @resource[:router_external] == 'True'

View File

@ -153,7 +153,7 @@ mtu="1500"')
.with('network', 'create', '--format', 'shell',
['net1', '--provider-network-type=vlan',
'--provider-physical-network=datacentre',
'--provider-segmentation-id=10'])
'--provider-segment=10'])
.and_return('admin_state_up="True"
availability_zone_hints="[]"
id="076520cc-b783-4cf5-a4a9-4cb5a5e93a9b"