Commit Graph

14247 Commits

Author SHA1 Message Date
Martin Winter
598d845766 Update FreeRangeRouting -> FRRouting name
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
d6df723b10 rip_topo1: Adding new test for RIPv2 Topology
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
9f3e0f6493 ripng_topo1: Adding new test for RIPng Topology
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
a93477ec42 topotest library: Fix creation of /etc/XXX/vtysh.conf
- Needs to be created in local filesystem of each router

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
5b7a4ad33a bgp_multiview_topo1: Fix case of tests hanging if convergence is not successful.
- Part of a command was missing which caused a hang in cases when BGP didn't converge

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
3eaafbd95d LDP-Topo1: Update test to accept new format of LDP output
* Added test to check for version
* Adopted all tests to verify against the correct version of output

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
1c909f4248 Fix README incorrect reference to Quagga 2018-11-27 20:22:11 -05:00
Martin Winter
ff0d89dcfd ldp-topo1: Fix ordering of reference output to check against
Ordering of output is now done by LDP and should be consistent

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
37c4800c44 ldp-topo1: Delete accidentally include tar file
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Donald Sharp
3a4f98d587 Update Readme to have correct ordering for frr user
We cannot usermod the frr user until after we
create the user with adduser.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-11-27 20:22:11 -05:00
Martin Winter
33ae1f751e Update Readme to reflect FreeRangeRouting name
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
d98b7d6359 bgp_multiview_topo1: Mask out BGP Table version in comparison
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
99561211e1 Added optional output for memleaks at the end of test. Enable them by setting the environment variable TOPOTESTS_CHECK_STDERR to some value
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
594b1259f9 Move common function and class to topotest library
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
f03e38f397 ldp-topo1: Add new LDP Topology Test 2018-11-27 20:22:11 -05:00
Martin Winter
e631b5186f bgp_multiview_topo1: Fix bad check for running daemons
Only one ruter running in the setup
2018-11-27 20:22:11 -05:00
Martin Winter
b36d3e1c85 Add support for FRR in addition to Quagga 2018-11-27 20:22:11 -05:00
Martin Winter
593335d02d change in checkRunning: Check all daemons on all nodes before aborting with an assert 2018-11-27 20:22:11 -05:00
Martin Winter
615f6ba320 ospf6-topo1: Add Markdown doc with testdescription 2018-11-27 20:22:11 -05:00
Martin Winter
6d9d0176e4 bgp_multiview_topo1: Rename test_description.md to README.md for automatic rendering in online git 2018-11-27 20:22:11 -05:00
Martin Winter
d71f367580 bgp_multiview_topo1: Add Markdown doc for test 2018-11-27 20:22:11 -05:00
Martin Winter
024fc0b8bc README: Add example configure statement for building test quagga code 2018-11-27 20:22:11 -05:00
Martin Winter
3b6bac2adf bgp_multiview_topo1: Change from unified to context diff for better readability 2018-11-27 20:22:11 -05:00
Martin Winter
2bdcdbd1b8 ospf6-topo1: Add check for Linux Kernel Routing Table as well and change to better human readable context diff 2018-11-27 20:22:11 -05:00
Martin Winter
a99a6a026e ospf6-topo1: Enable coredumps for Quagga Daemons and add logic to skip remaining test in case of fatal error 2018-11-27 20:22:11 -05:00
Martin Winter
04df53ab5a bgp_multiview_topo1: Added Network Diagram as comment 2018-11-27 20:22:11 -05:00
Martin Winter
5ead87b456 bgp_multiview_topo1: Fix limit to create coredumps on quagga crashes 2018-11-27 20:22:11 -05:00
Martin Winter
64581658b1 bgp_multiview_topo1: Rename received bgp route log with .log for easy clean between runs 2018-11-27 20:22:11 -05:00
Martin Winter
309c9764c5 example-test: Add simple example pytest for documentation (and exclude it from running in pytest.ini) 2018-11-27 20:22:11 -05:00
Martin Winter
6b1be61ad8 Update Documentation 2018-11-27 20:22:11 -05:00
Martin Winter
2cda38e488 bgp_multiview_topo1: Skip remaining on fatal error and try to get more crash info of daemon is not running 2018-11-27 20:22:11 -05:00
Martin Winter
586e15c4fb bgp_multiview_topo1: Add "bgp multiview" simple topology to test. Initial commit 2018-11-27 20:22:10 -05:00
Martin Winter
68a655673f ospf6-topo1: Code cleanup 2018-11-27 20:22:10 -05:00
Martin Winter
50bd94cd20 ospf6-topo1: Less chatty timeout messages during convergence 2018-11-27 20:22:10 -05:00
Martin Winter
806111c083 ospf6-topo1: Cleanup log messages 2018-11-27 20:22:10 -05:00
Martin Winter
a177e146bb Add .gitignore 2018-11-27 20:22:10 -05:00
Martin Winter
b057efe120 test_ospf6_topo1: Restructure to run under pytest 2018-11-27 20:22:10 -05:00
Martin Winter
a92d8407ab Renamed Test Directory: ospf6-test1 -> ospf6_topo1 2018-11-27 20:22:10 -05:00
Martin Winter
52f17ef4aa ospf6-test1: Renamed testscript to have test_ prefix for pytest discovery 2018-11-27 20:22:10 -05:00
Martin Winter
d14615d865 ospf6-test1: Look for test config in directories relative to main script location 2018-11-27 20:22:10 -05:00
Martin Winter
8ab9a37669 Cleanup README and a reference to License 2018-11-27 20:22:10 -05:00
Martin Winter
59d80fffc2 Initial commit with first OSPFv6 Topology Test 2018-11-27 20:22:10 -05:00
Donald Sharp
8b5f676563 tests: Exclude topotests from consideration
When running make check, exclude the topotests directory from considertion.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-11-27 20:22:10 -05:00
Russ White
6c241117f8
Merge pull request #3373 from nitinsoniism/show_evpn_arp_cache_vni_all_detail
zebra: Add "show evpn arp-cache vni all detail" command
2018-11-27 13:59:16 -05:00
Russ White
4fedcc6947
Merge pull request #3267 from mjstapp/dplane_3
zebra async dataplane: phase 2
2018-11-27 13:56:30 -05:00
Nitin Soni
e3fac9195d zebra: Add "show evpn arp-cache vni all detail" command
Change helps display detailed output for all possible VNI neighbors
without specifying VNI and ip. It helps in troubleshooting as a single
command can be fired to capture detailed info on all VNIs.

Ticket: CM-22832
Signed-off-by: Nitin Soni <nsoni@cumulusnetworks.com>
Reviewed-by: CCR-8034
2018-11-27 05:56:56 -08:00
Nitin Soni
cffe7580fd zebra: Add "show evpn mac vni all detail" command
Change helps display detailed output for all possible VNI MACs without
specifying VNI or mac. It helps in troubleshooting - a single
command can be fired to capture detailed info on all VNIs.
Also fixed and existing json related bug where json object is created by
a parent function and freed in child function.

Ticket: CM-22832
Signed-off-by: Nitin Soni <nsoni@cumulusnetworks.com>
Reviewed-by: CCR-8028
2018-11-27 05:44:48 -08:00
Renato Westphal
9c47203310 ripd: fix operational-data northbound callbacks
The get_next() and lookup_entry() callbacks should return structures of
the same type. This is because the returned list entry is passed to the
get_elem() callbacks, which must assume the 'list_entry' parameter is
of a single type.

This wasn't a problem before because we'd always call lookup_entry()
after get_next(), but it was realized this isn't necessary when iterating
sequentially over a YANG list. Now we need to ensure that the get_elem()
callbacks work with list entries returned by either get_next() or
lookup_entry().

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 18:28:53 -02:00
Renato Westphal
1a4bc045de lib, tests: major rework in the operational-data callbacks
The northbound infrastructure for operational data was subpar compared
to the infrastructure for configuration data. This commit addresses most
of the existing problems, making it possible to write operational-data
callbacks for more complex YANG models.

Summary of the changes:
* Add support for nested YANG lists.
* Add support for leaf-lists.
* Add support for leafs of type "empty".
* Introduce the "show yang operational-data XPATH" command, and write an
  unit test for it. The main purpose of this command is to make it
  easier to test the operational-data northbound callbacks.
* Introduce the nb_oper_data_iterate() function, that can be used
  to iterate over operational data. Make the CLI and sysrepo use this
  function.
* Since ConfD has a very peculiar API, it can't reuse the
  nb_oper_data_iterate() like the other northbound clients. In this
  case, adapt the existing ConfD callbacks to support the new features
  (and make some performance improvements in the process).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 18:28:53 -02:00
Renato Westphal
85cd3326fd lib: do not subscribe to config changes on a state data tree (confd plugin)
Prevent the confd plugin from subscribing to configuration changes on a
data tree that contains only state data.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 17:38:08 -02:00