Skip to content

Commit

Permalink
change some default value in config,py
Browse files Browse the repository at this point in the history
change default write_dir from /home/yabgp/data/bgp/ to data/bgp in the current user's home folder;
change default value of local_addr to '0.0.0.0'
  • Loading branch information
xiaopeng163 committed Jul 15, 2015
1 parent 82f6c30 commit 98a396b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yabgp/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import logging
import sys
import os

from oslo.config import cfg

Expand All @@ -30,7 +31,7 @@
default=True,
help='Whether the BGP message is written to disk'),
cfg.StrOpt('write_dir',
default='/home/yabgp/data/bgp/',
default=os.path.join(os.environ['HOME'], 'data/bgp/'),
help='The BGP messages storage path'),
cfg.IntOpt('write_msg_max_size',
default=500,
Expand Down Expand Up @@ -87,6 +88,7 @@
cfg.StrOpt('remote_addr',
help='The remote address of the peer'),
cfg.StrOpt('local_addr',
default='0.0.0.0',
help='The local address of the BGP'),
cfg.StrOpt('md5',
help='The MD5 string use to auth')
Expand Down

0 comments on commit 98a396b

Please sign in to comment.