small core configuration cleanup
This commit is contained in:
parent
6b43c00031
commit
3f1ff113ca
2 changed files with 7 additions and 15 deletions
|
@ -1,10 +1,3 @@
|
|||
# Configuration file for CORE (core-gui, core-daemon)
|
||||
|
||||
### GUI configuration options ###
|
||||
[core-gui]
|
||||
# no options are presently defined; see the ~/.core preferences file
|
||||
|
||||
### core-daemon configuration options ###
|
||||
[core-daemon]
|
||||
listenaddr = localhost
|
||||
port = 4038
|
||||
|
@ -15,15 +8,14 @@ frr_bin_search = "/usr/local/bin /usr/bin /usr/lib/frr"
|
|||
frr_sbin_search = "/usr/local/sbin /usr/sbin /usr/lib/frr"
|
||||
|
||||
# uncomment the following line to load custom services from the specified dir
|
||||
# this may be a comma-separated list, and directory names should be unique
|
||||
# and not named 'services'
|
||||
# this may be a comma-separated list, and directory names should be unique
|
||||
# and not named 'services'
|
||||
#custom_services_dir = /home/username/.core/myservices
|
||||
#
|
||||
|
||||
# uncomment to establish a standalone control backchannel for accessing nodes
|
||||
# (overriden by the session option of the same name)
|
||||
#controlnet = 172.16.0.0/24
|
||||
#
|
||||
#
|
||||
|
||||
# uncomment and edit to establish a distributed control backchannel
|
||||
#controlnet = core1:172.16.1.0/24 core2:172.16.2.0/24 core3:172.16.3.0/24 core4:172.16.4.0/24 core5:172.16.5.0/24
|
||||
|
||||
|
|
|
@ -132,9 +132,9 @@ def get_merged_config(filename):
|
|||
if not cfg.has_section(section):
|
||||
cfg.add_section(section)
|
||||
|
||||
# merge command line with config file
|
||||
for opt in args.__dict__:
|
||||
val = args.__dict__[opt]
|
||||
# merge argparse with configparser
|
||||
for opt in vars(args):
|
||||
val = getattr(args, opt)
|
||||
if val is not None:
|
||||
cfg.set(section, opt, str(val))
|
||||
|
||||
|
|
Loading…
Reference in a new issue