Commit 623eff75 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric de Saint Martin

added create tap option to register

parent 04191ac4
...@@ -94,6 +94,12 @@ class Parser(OptionParser): ...@@ -94,6 +94,12 @@ class Parser(OptionParser):
help="User password on Vifib master webservice", help="User password on Vifib master webservice",
default=None, default=None,
type=str), type=str),
Option("-t", "--create-tap",
help="""Will trigger creation of one virtual "tap" interface per \
Partition and attach it to primary interface. Requires primary interface to be \
a bridge. defaults to false. Needed to host virtual machines.""",
default=False,
action="store_true"),
Option("-n", "--dry-run", Option("-n", "--dry-run",
help="Simulate the execution steps", help="Simulate the execution steps",
default=False, default=False,
...@@ -258,7 +264,8 @@ def slapconfig(config): ...@@ -258,7 +264,8 @@ def slapconfig(config):
slapformatconfig = dict( slapformatconfig = dict(
interface_name=config.interface_name, interface_name=config.interface_name,
ipv4_local_network=config.ipv4_local_network, ipv4_local_network=config.ipv4_local_network,
partition_amount=config.partition_number partition_amount=config.partition_number,
create_tap=config.create_tap
) )
for key in slapformatconfig : for key in slapformatconfig :
configuration_example_parser.set('slapformat',key,slapformatconfig[key]) configuration_example_parser.set('slapformat',key,slapformatconfig[key])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment