diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-12-22 09:32:44 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-01-19 13:25:19 +0900 |
commit | f3a6c3519a43919391d1aebd420f555cb2c6a93f (patch) | |
tree | 2afd9b5075f17f441789e6ae15d363e7013a9d75 /test/lib/base.py | |
parent | 3707b5aedf11e1adc2bd35baba9d05a308ba384b (diff) |
test/lib: Add YABGP container
Note: This implementation supposes the YABGP version 0.4.0.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/lib/base.py')
-rw-r--r-- | test/lib/base.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 19452896..c7afba6d 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -48,6 +48,33 @@ BGP_ATTR_TYPE_CLUSTER_LIST = 10 BGP_ATTR_TYPE_MP_REACH_NLRI = 14 BGP_ATTR_TYPE_EXTENDED_COMMUNITIES = 16 +FLOWSPEC_NAME_TO_TYPE = { + "destination": 1, + "source": 2, + "protocol": 3, + "port": 4, + "destination-port": 5, + "source-port": 6, + "icmp-type": 7, + "icmp-code": 8, + "tcp-flags": 9, + "packet-length": 10, + "dscp": 11, + "fragment": 12, + "label": 13, + "ether-type": 14, + "source-mac": 15, + "destination-mac": 16, + "llc-dsap": 17, + "llc-ssap": 18, + "llc-control": 19, + "snap": 20, + "vid": 21, + "cos": 22, + "inner-vid": 23, + "inner-cos": 24, +} + # with this label, we can do filtering in `docker ps` and `docker network prune` TEST_CONTAINER_LABEL = 'gobgp-test' TEST_NETWORK_LABEL = TEST_CONTAINER_LABEL |