diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-24 09:42:06 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-24 10:43:37 +0000 |
commit | 23252d9ad86c46024b512b63315ea818c7dc47ef (patch) | |
tree | 4da71dd0a281bc1c2bb563fcac9e68ff8ffb41d2 /test/lib/quagga.py | |
parent | 1b6532d8224fd350c9f805b21ea164a84b2a79fb (diff) |
test: add BGPContainer.define_policy() and BGPContainer.assign_policy()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/quagga.py')
-rw-r--r-- | test/lib/quagga.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py index 59cf58e9..ce53a29b 100644 --- a/test/lib/quagga.py +++ b/test/lib/quagga.py @@ -164,10 +164,9 @@ class QuaggaBGPContainer(BGPContainer): c << 'neighbor {0} remote-as {1}'.format(n_addr, peer.asn) if info['is_rs_client']: c << 'neighbor {0} route-server-client'.format(n_addr) - for name, policy in info['policies'].iteritems(): - direction = policy['direction'] - c << 'neighbor {0} route-map {1} {2}'.format(n_addr, name, - direction) + for typ, p in info['policies'].iteritems(): + c << 'neighbor {0} route-map {1} {2}'.format(n_addr, p['name'], + typ) if info['passwd']: c << 'neighbor {0} password {1}'.format(n_addr, info['passwd']) if info['passive']: |