Commit Graph

13915 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
Renato Westphal
a6233bfcb3 lib, ripd: rework API for converted CLI commands
When editing the candidate configuration, the northbound must ensure
that either all changes made by a command are accepted or none are.
This is done to prevent inconsistent states where only parts of a
command are applied in the event any error happens.

The previous API for converted commands, the nb_cli_cfg_change()
function, required callers to pass an array containing all changes
that needed to be applied in the candidate configuration. The
problem with this API is that it was very inconvenient for complex
commands, which change different configuration options depending
on several factors.  This required users to manipulate the array
of configuration changes using low-level primitives, making it
complicated to implement some commands.

To solve this problem, introduce a new API based on the two following
functions:
- nb_cli_enqueue_change()
- nb_cli_apply_changes()

The first function is used to enqueue configuration changes, one
at time. Then the nb_cli_apply_changes() function is used to apply
all the enqueued configuration changes.

To implement this, a static-sized array was allocated in the "vty"
structure, along with a counter of enqueued changes. This eliminates
the need to declare an array of configuration changes in every
converted CLI command, simplifying things quite considerably.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 15:57:23 -02:00
Renato Westphal
bb5b9c10c1 ripd: fix display of the "distance" command
When displaying a configuration using the "with-defaults" option,
do not display "distance 0" when the "distance" command is not
configured. The range of accepted values is (1-255), so "distance
0" isn't a valid command. In this case, display "no distance".

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 15:53:21 -02:00
Renato Westphal
25c780a32a lib: make yang_dnode_get_entry() more flexible
Add the "abort_if_not_found" parameter to the yang_dnode_get_entry()
function instead of always aborting when an user pointer is not
found.  This will make it possible, for example, to use this function
during the validation phase of a configuration transaction. Callers
will only need to check if the function returned NULL or not,
since new configuration objects (if any) won't be created until
the NB_EV_APPLY phase of the transaction.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 15:53:15 -02:00
Renato Westphal
3f66207896 lib: introduce function to retrieve the schema name of a data node
In some cases it might be desirable to obtain the schema name of
a libyang data node. Introduce the yang_dnode_get_schema_name()
function for this purpose.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-26 15:52:12 -02:00