Skip to content

Commit

Permalink
add nic_opts parameter to lxc.present
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Givors committed Sep 17, 2019
1 parent 705e8cc commit 38e2108
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions salt/states/lxc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def present(name,
snapshot=False,
profile=None,
network_profile=None,
nic_opts=None,
template=None,
options=None,
image=None,
Expand Down Expand Up @@ -75,6 +76,19 @@ def present(name,
.. versionadded:: 2015.5.2
nic_opts
per interface settings compatibles with
network profile (ipv4/ipv6/link/gateway/mac/netmask)
eg::
- {'eth0': {'mac': '00:16:3e:01:29:40',
'gateway': None, (default)
'link': 'br0', (default)
'gateway': None, (default)
'netmask': '', (default)
'ip': '22.1.4.25'}}
**Container Creation Arguments**
template
Expand Down Expand Up @@ -241,6 +255,7 @@ def present(name,
name,
profile=profile,
network_profile=network_profile,
nic_opts=nic_opts,
template=template,
options=options,
image=image,
Expand Down

0 comments on commit 38e2108

Please sign in to comment.