Skip to content

Commit

Permalink
Remove default for network_policy and add inherit param
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Oct 1, 2022
1 parent 1ac1cf4 commit 6ad70f5
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions plugins/modules/vmware_dvs_portgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,19 @@
description:
- Dictionary which configures the different security values for portgroup.
suboptions:
inherited:
type: bool
description: Inherit the settings from the switch or not.
promiscuous:
type: bool
description: Indicates whether promiscuous mode is allowed.
default: False
description: Indicates whether promiscuous mode is allowed. Ignored if C(inherited) is true.
forged_transmits:
type: bool
description: Indicates whether forged transmits are allowed.
default: False
description: Indicates whether forged transmits are allowed. Ignored if C(inherited) is true.
mac_changes:
type: bool
description: Indicates whether mac changes are allowed.
default: False
description: Indicates whether mac changes are allowed. Ignored if C(inherited) is true.
required: False
default: {
promiscuous: False,
forged_transmits: False,
mac_changes: False,
}
type: dict
teaming_policy:
description:
Expand Down Expand Up @@ -855,15 +850,14 @@ def main():
network_policy=dict(
type='dict',
options=dict(
promiscuous=dict(type='bool', default=False),
forged_transmits=dict(type='bool', default=False),
mac_changes=dict(type='bool', default=False)
inherited=dict(type='bool'),
promiscuous=dict(type='bool'),
forged_transmits=dict(type='bool'),
mac_changes=dict(type='bool')
),
default=dict(
promiscuous=False,
forged_transmits=False,
mac_changes=False
)
required_if=[
('inherited', False, ('promiscuous', 'forged_transmits', 'mac_changes'))
],
),
in_traffic_shaping=dict(
type='dict',
Expand Down

0 comments on commit 6ad70f5

Please sign in to comment.