mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
From: Jason Bausewein [jason.bausewein@tier3.com]
I would like to add an command line option to choose between advanced or basic networking configuration. This would allow me or others to choose advanced networking without having to edit the python code.
This commit is contained in:
parent
e38db69434
commit
8dd4197cd8
@ -389,8 +389,14 @@ def get_setup_config(file):
|
||||
if __name__ == "__main__":
|
||||
parser = OptionParser()
|
||||
|
||||
parser.add_option("-a", "--advanced", action="store_true", default=False, dest="advanced", help="use advanced networking")
|
||||
parser.add_option("-o", "--output", action="store", default="./datacenterCfg", dest="output", help="the path where the json config file generated, by default is ./datacenterCfg")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
config = describe_setup_in_basic_mode()
|
||||
|
||||
if options.advanced:
|
||||
config = describe_setup_in_advanced_mode()
|
||||
else:
|
||||
config = describe_setup_in_basic_mode()
|
||||
|
||||
generate_setup_config(config, options.output)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user