Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.core
Commits
623eff75
Commit
623eff75
authored
Sep 10, 2012
by
Cédric Le Ninivin
Committed by
Cédric de Saint Martin
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added create tap option to register
parent
04191ac4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
slapos/register/register.py
slapos/register/register.py
+8
-1
No files found.
slapos/register/register.py
View file @
623eff75
...
@@ -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
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment