Skip to content

Commit 877581e

Browse files
authored
Add missing options to podman network (#535)
Fix #534 Signed-off-by: Sagi Shnaidman <[email protected]> Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent a762dc6 commit 877581e

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

plugins/modules/podman_network.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,35 @@
6767
- Add network options. Currently 'vlan' and 'mtu' are supported.
6868
type: dict
6969
suboptions:
70+
isolate:
71+
description:
72+
- This option isolates networks by blocking traffic between those
73+
that have this option enabled.
74+
type: bool
75+
required: false
76+
metric:
77+
description:
78+
- Sets the Route Metric for the default route created in every
79+
container joined to this network.
80+
Can only be used with the Netavark network backend.
81+
type: int
82+
required: false
83+
mode:
84+
description:
85+
- This option sets the specified ip/macvlan mode on the interface.
86+
type: str
87+
required: false
7088
mtu:
7189
description:
7290
- MTU size for bridge network interface.
7391
type: int
7492
required: false
93+
parent:
94+
description:
95+
- The host device which should be used for the macvlan interface.
96+
Defaults to the default route interface.
97+
type: str
98+
required: false
7599
vlan:
76100
description:
77101
- VLAN tag for bridge which enables vlan_filtering.
@@ -627,8 +651,13 @@ def main():
627651
macvlan=dict(type='str', required=False),
628652
opt=dict(type='dict', required=False,
629653
options=dict(
654+
isolate=dict(type='bool', required=False),
630655
mtu=dict(type='int', required=False),
631-
vlan=dict(type='int', required=False))),
656+
metric=dict(type='int', required=False),
657+
mode=dict(type='str', required=False),
658+
parent=dict(type='str', required=False),
659+
vlan=dict(type='int', required=False),
660+
)),
632661
executable=dict(type='str', required=False, default='podman'),
633662
debug=dict(type='bool', default=False),
634663
recreate=dict(type='bool', default=False),

0 commit comments

Comments
 (0)