mirror_frr/tests
Hiroki Shirokura 893799b011 topotests: add bgp_prefix_sid
This commit add behavior test for BGP Prefix-SID path
attribute generically.  In this time, there are only
1-test for Prefix-SID type-1 Label-Index TLV.

There are 3 nodes r1(FRR), peer1(exabgp) and peer2(exabgp)
on this topotest. And it perform following:

* peer1 advertise Prefix-SID to r1
* r1 is received Prefix-SID from peer1
* bgpd on r1 check the path attribute and parse correctly.
* user can check information from type-1 information via show cli
* bgpd on r1 advertise Prefix-SID to peer2
* peer2 is received Prefix-SID from r1
* peer2 check the path attribute and parse correctly.

This test uses exabgp's generic path attribute feature
of exabgp is used to advertise Prefix-SID path attribute
to bgpd. generic path attribute feature enable exabgp
users to specify binary format path attribute.
we can send valious binary pattern
(but overflow test doesn't can be performed).

The reason why this commit uses generic attribute feature
is that exabgp v3 doesn't support Prefix-SID path attribute
and topotest support exabgp only v3. (fyr. exabgp v4 supports it).
Thus this test includes little complicated binary format,
so I wrote full binary desection and explanation.
If topotest support exabgp v4, this test should
be rewrite with non generic attribute feature.

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2020-02-14 00:13:43 +00:00
..
bgpd Merge pull request #5744 from ton31337/fix/thread-as-withdraw_attributes 2020-02-11 10:04:19 -05:00
helpers lib: rename memory_vty.c to lib_vty.c 2019-12-06 15:13:29 +01:00
isisd isisd: Update TLVs processing for TE, RI & SR 2019-09-17 17:35:50 +02:00
lib *: don't null after XFREE; XFREE does this itself 2020-02-03 11:22:13 -05:00
ospf6d build: non-recursive tests 2018-09-08 21:26:54 +02:00
topotests topotests: add bgp_prefix_sid 2020-02-14 00:13:43 +00:00
.gitignore lib: add frr_version_cmp() 2019-12-06 15:13:32 +01:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
subdir.am lib: add frr_version_cmp() 2019-12-06 15:13:32 +01:00