Signed-off-by: IWASE Yusuke <[email protected]>
---
ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_mac_base.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_router_id.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_nlri_eth_a-d.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_nlri_eth_seg.pcap | Bin 0 -> 154 bytes
.../bgp4/evpn_nlri_inc_multi_eth_tag.pcap | Bin 0 -> 148 bytes
.../packet_data/bgp4/evpn_nlri_mac_ip_ad.pcap | Bin 0 -> 168 bytes
ryu/tests/unit/packet/test_bgp.py | 26 +++++++++++++++++++--
11 files changed, 24 insertions(+), 2 deletions(-)
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_mac_base.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_esi_router_id.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_nlri_eth_a-d.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_nlri_eth_seg.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_nlri_inc_multi_eth_tag.pcap
create mode 100644 ryu/tests/packet_data/bgp4/evpn_nlri_mac_ip_ad.pcap
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..490ee839108db7c5a82f965aad94965a36e9fa08
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2}=_op^oOoxM^1jq(qK_z3C(6m*%&)j|YpM$}bfguf~
z<3HQ-el7+ECLm@!!pyK4BnAQjKwSF~D31mh?3jQu>J5A<43cgvf<VB)C<!zi44@Q9
K5XfX;3j_cnOek*v
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..d17183a7a16f430db86e46cd98dfb8474b7c7eae
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2}=z)%<N#m&S}0%U`*ppvmmXxggXXYRiH&%xlzz>o&g
z@t<vZKNkZ76A&{VVP@D25(9w%AU=2-D31mh?3jQu>J5A<43cgvf<VB)C<!zi3|Jv{
Mly?A?043N00l{-AaR2}S
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..0f8d3f95438950e4d9b408923fa72ed4c55b42a0
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2}Q`Bxk6sm94r0%U`*ppvmmXxggXXYRiH&%xlzz>o&g
z@t<vZKNkZ76A&{VVP@D25(9w%AodIe%A)}WJ0_rvdIO&dgQOdaAP_JxN&*cB115;+
M%0R<`A`EPS05-lXfdBvi
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..833109b5b99ac621b7198a602cf92cd14530a598
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2}g{<k*V?-(yb36KrKf=b3Np=qmjpSk<)KL>*=149}}
z$A7lv{ag$TOhC+dgqdM8NDKr5fH*20D31mh?3jQu>J5A<43cgvf<VB)C<!zi3>YD%
M3z-0w043N00mQ#8i~s-t
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_mac_base.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_mac_base.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..3b6fa7987b33b295c826640d3e7a6adfe42fb9e2
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2|l`Cl8}RmQ?l0%8NPppvmmXxggXXYRiH&%xlzz>o&g
z@t<vZKNkZ76A&{VVP@D25(9w%AU@y(lt%*$c1%DS^#(o_21z#-K_FmYlmr?M2FwuC
MO~NWbA`EPS0F$aM{Qv*}
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_esi_router_id.pcap
b/ryu/tests/packet_data/bgp4/evpn_esi_router_id.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..b69ce620c5ddf2172e0f59d95871e1995cae12d1
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2}w^{NlQ{DOg@1jq(qK_z3C(6m*%&)j|YpM$}bfguf~
z<3HQ-el7+ECLm@!!pyK4BnAQjK>WuMD31mh?3jQu>J5A<43cgvf<VB)C<!zi3|K&>
Ogr=2u0F?kG*a87wDJkv%
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_nlri_eth_a-d.pcap
b/ryu/tests/packet_data/bgp4/evpn_nlri_eth_a-d.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..434c898ae202c10e1d28db8dac42121c947843f3
GIT binary patch
literal 156
zcmca|c+)~A1{MYw`2U}Qff2~r{HHej^b|gZ5+ECd1(l3lLep05K6Cfoe+~v$28J|{
zj{j`S`?(kxn1Gn^2s6WGkQfLA0CDX{pgbC2uww$ss5kJbFi5(w2m%2Eqa@I9Fo04Z
KK_HWXEf4^{EGee|
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_nlri_eth_seg.pcap
b/ryu/tests/packet_data/bgp4/evpn_nlri_eth_seg.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..a99804b3f0d0a25a0b6674503fdf1be861198cad
GIT binary patch
literal 154
zcmca|c+)~A1{MYw`2U}Qff2}g&RiERIERCw2*?IuK_z3C(6m*%&)j|YpM$}bfguH?
z<3HQ-iChc}OhC+dgqdM8NDKr5fVf-)D31mhY?y#DsttTf43cgvf<VB)A`Ubh44@Q{
ItpMT!0CZR<DgXcg
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_nlri_inc_multi_eth_tag.pcap
b/ryu/tests/packet_data/bgp4/evpn_nlri_inc_multi_eth_tag.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..293722db437ce356f6349f868a707a3f8a0ca95a
GIT binary patch
literal 148
zcmca|c+)~A1{MYw`2U}Qff2~r#8ek<TE)hY17w4+ppvmmXxggXXYRiH&%xlzzz_%0
z@t<w^bS?%4CLm@!!pyK4BnAQjKzuw3D31mh%$R^O@(p}443cgvf<VB)EC@6l3_!F3
Ghy?(NfF|w$
literal 0
HcmV?d00001
diff --git a/ryu/tests/packet_data/bgp4/evpn_nlri_mac_ip_ad.pcap
b/ryu/tests/packet_data/bgp4/evpn_nlri_mac_ip_ad.pcap
new file mode 100644
index
0000000000000000000000000000000000000000..f9152e80a85fbf512472e2a35db7247fa345239b
GIT binary patch
literal 168
zcmca|c+)~A1{MYw`2U}Qff2|lWvmO|6V1cW0Az!(ppvmmXxggXXYRiH&%xlzz)%Df
zWcbgvyqSxEfeDBik1#WA28n?{01!WI1InWT1}`R{jBx{>0fVF)iy#m%FsT9!2LmVt
P5(F|0Ac6`Y3djWj_OdB3
literal 0
HcmV?d00001
diff --git a/ryu/tests/unit/packet/test_bgp.py
b/ryu/tests/unit/packet/test_bgp.py
index d23b259..a8900a5 100644
--- a/ryu/tests/unit/packet/test_bgp.py
+++ b/ryu/tests/unit/packet/test_bgp.py
@@ -115,7 +115,13 @@ class Test_bgp(unittest.TestCase):
bgp.BGPIPv4AddressSpecificExtendedCommunity(
subtype=3, ipv4_address='192.0.2.1',
local_administrator=65432),
- bgp.BGPOpaqueExtendedCommunity(opaque=b'abcdefg'),
+ bgp.BGPOpaqueExtendedCommunity(subtype=13, opaque=b'abcdef'),
+ bgp.BGPEvpnMacMobilityExtendedCommunity(
+ subtype=0, flags=0xff, sequence_number=0x11223344),
+ bgp.BGPEvpnEsiLabelExtendedCommunity(
+ subtype=1, flags=0xff, esi_label=0x112233),
+ bgp.BGPEvpnEsImportRTExtendedCommunity(
+ subtype=2, es_import="aa:bb:cc:dd:ee:ff"),
bgp.BGPUnknownExtendedCommunity(type_=99, value=b'abcdefg'),
]
path_attributes = [
@@ -206,6 +212,16 @@ class Test_bgp(unittest.TestCase):
# 2. quagga always uses EXTENDED for AS_PATH
# 'bgp4-update',
'bgp4-keepalive',
+ 'evpn_esi_arbitrary',
+ 'evpn_esi_lacp',
+ 'evpn_esi_l2_bridge',
+ 'evpn_esi_mac_base',
+ 'evpn_esi_router_id',
+ 'evpn_esi_as_based',
+ 'evpn_nlri_eth_a-d',
+ 'evpn_nlri_mac_ip_ad',
+ 'evpn_nlri_inc_multi_eth_tag',
+ 'evpn_nlri_eth_seg',
]
for f in files:
@@ -263,7 +279,13 @@ class Test_bgp(unittest.TestCase):
bgp.BGPIPv4AddressSpecificExtendedCommunity(
subtype=3, ipv4_address='192.0.2.1',
local_administrator=65432),
- bgp.BGPOpaqueExtendedCommunity(opaque=b'abcdefg'),
+ bgp.BGPOpaqueExtendedCommunity(subtype=13, opaque=b'abcdef'),
+ bgp.BGPEvpnMacMobilityExtendedCommunity(
+ subtype=0, flags=0xff, sequence_number=0x11223344),
+ bgp.BGPEvpnEsiLabelExtendedCommunity(
+ subtype=1, flags=0xff, esi_label=0x112233),
+ bgp.BGPEvpnEsImportRTExtendedCommunity(
+ subtype=2, es_import="aa:bb:cc:dd:ee:ff"),
bgp.BGPUnknownExtendedCommunity(type_=99, value=b'abcdefg'),
]
path_attributes = [
--
2.7.4
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel