Skip to content

Commit

Permalink
Bugfix - can't handle flags properly in "exabgp_conf.py"
Browse files Browse the repository at this point in the history
  • Loading branch information
t2mune committed May 3, 2015
1 parent b633367 commit 2646b5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2015-05-04 Tetsumune KISO <t2mune@gmail.com>
* Bugfix - can't handle flags properly in "exabgp_conf.py".

2015-05-03 Tetsumune KISO <t2mune@gmail.com>
* Update - changed command line options in "slice.py".
* Update - added command line options in "exabgp_conf.py".
Expand Down
7 changes: 4 additions & 3 deletions examples/exabgp_conf.py
Expand Up @@ -34,11 +34,12 @@
def parse_args():
global flags

if ('-4' or '--ipv4') in sys.argv:
if '-4' in sys.argv or '--ipv4' in sys.argv:
flags |= FLAG_T['IPv4']
if ('-6' or '--ipv6') in sys.argv:
if '-6' in sys.argv or '--ipv6' in sys.argv:
flags |= FLAG_T['IPv6']
if not (('-4' or '--ipv4' or '-6' or '--ipv6') in sys.argv):
if ( '-4' not in sys.argv and '--ipv4' not in sys.argv
and '-6' not in sys.argv and '--ipv6' not in sys.argv):
flags = FLAG_T['IPv4'] | FLAG_T['IPv6']

p = argparse.ArgumentParser(
Expand Down

0 comments on commit 2646b5d

Please sign in to comment.