Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
cf62a272
Commit
cf62a272
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Put default bridge into constant.
Reviewed-by: iustinp
parent
0006af7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/constants.py
+3
-0
3 additions, 0 deletions
lib/constants.py
scripts/gnt-cluster
+6
-5
6 additions, 5 deletions
scripts/gnt-cluster
with
9 additions
and
5 deletions
lib/constants.py
+
3
−
0
View file @
cf62a272
...
@@ -84,3 +84,6 @@ INISECT_INS = "instance"
...
@@ -84,3 +84,6 @@ INISECT_INS = "instance"
# common exit codes
# common exit codes
EXIT_NOTMASTER
=
11
EXIT_NOTMASTER
=
11
# others
DEFAULT_BRIDGE
=
"
xen-br0
"
This diff is collapsed.
Click to expand it.
scripts/gnt-cluster
+
6
−
5
View file @
cf62a272
...
@@ -202,15 +202,16 @@ commands = {
...
@@ -202,15 +202,16 @@ commands = {
default
=
"
xenvg
"
,),
default
=
"
xenvg
"
,),
make_option
(
"
-b
"
,
"
--bridge
"
,
dest
=
"
def_bridge
"
,
make_option
(
"
-b
"
,
"
--bridge
"
,
dest
=
"
def_bridge
"
,
help
=
"
Specify the default bridge name (cluster-wide)
"
help
=
"
Specify the default bridge name (cluster-wide)
"
"
to connect the instances to [xen-br0]
"
,
"
to connect the instances to [%s]
"
%
constants
.
DEFAULT_BRIDGE
,
metavar
=
"
BRIDGE
"
,
metavar
=
"
BRIDGE
"
,
default
=
"
xen-br0
"
,),
default
=
constants
.
DEFAULT_BRIDGE
,),
make_option
(
"
--master-netdev
"
,
dest
=
"
master_netdev
"
,
make_option
(
"
--master-netdev
"
,
dest
=
"
master_netdev
"
,
help
=
"
Specify the node interface (cluster-wide)
"
help
=
"
Specify the node interface (cluster-wide)
"
"
on which the master IP address will be added
"
"
on which the master IP address will be added
"
"
[
xen-br0]
"
,
"
[
%s]
"
%
constants
.
DEFAULT_BRIDGE
,
metavar
=
"
NETDEV
"
,
metavar
=
"
NETDEV
"
,
default
=
"
xen-br0
"
,),
default
=
constants
.
DEFAULT_BRIDGE
,),
],
],
"
[opts...] <cluster_name>
"
,
"
[opts...] <cluster_name>
"
,
"
Initialises a new cluster configuration
"
),
"
Initialises a new cluster configuration
"
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment