neutron_router: Prohibit updating project_id/name

We already prohibit updating tenant_id and tenant_name. Because
the provider does not have logic to handle the update, we should also
prohibit updating these properties.

Change-Id: Iabab109d21cd0a09a75e1fd06740f7360723af48
(cherry picked from commit dae8ec409c)
This commit is contained in:
Takashi Kajinami 2022-12-01 13:14:45 +09:00
parent 4fdb0798a6
commit 4eeb47ce4b
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ Puppet::Type.type(:neutron_router).provide(
:availability_zone_hint,
:tenant_id,
:tenant_name,
:project_id,
:project_name
].each do |attr|
define_method(attr.to_s + "=") do |value|
fail("Property #{attr.to_s} does not support being updated")