summaryrefslogtreecommitdiff
path: root/tests/testsuite.at
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add tunnel-push-pop-ipv6 testsThadeu Lima de Souza Cascardo2015-12-041-0/+1
| | | | | | | | | Based on IPv4 tests, test tunnels over IPv6. In order to do that, add netdev-dummy/ip6addr command for dummy bridges, and get_in6 support for netdev-dummy as well. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* ovn-controller: Add test for setting up and tearing down patch ports.Ben Pfaff2015-10-071-0/+1
| | | | | | | | | The initial plan for OVN logical routers will make more extensive use of patch ports, so it seems like a good idea to add some tests to avoid regressions before messing with them. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Justin Pettit <jpettit@nicira.com>
* tests: Add unit tests for ovn-nbctl.Justin Pettit2015-09-041-0/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* tests: Group the OVN tests together.Justin Pettit2015-09-041-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* ovn: Add controller for VTEP gateway.Alex Wang2015-08-101-0/+1
| | | | | | | | This commit lays down the foundation for a new controller in OVN, the ovn-controller-vtep, for controlling the vtep enabled gateways. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
* ovn-sbctl: Add ovn-sbctl.Alex Wang2015-08-081-0/+1
| | | | | | | | | This commit adds ovn-sbctl to ovn family by using the db-ctl-base library. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
* Merge "master" into "ovn".Justin Pettit2015-05-071-0/+1
|\ | | | | | | | | | | | | This brings in STT. Conflicts: tutorial/ovs-sandbox
| * dpctl: Add tests.Ben Pfaff2015-04-161-0/+1
| | | | | | | | | | | | | | | | These tests prevent regressions against the problems fixed by the previous two commits. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* | lex: New lexical analyzer module for use in OVN.Ben Pfaff2015-04-151-0/+1
|/ | | | | | | | | I'm determined not to let the terrible style of pseudo-parsing we have in OVS leak into OVN. Here's the first step. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
* auto-attach: Add auto-attach support to bridge layer and command setDennis Flynn2015-03-031-0/+1
| | | | | | | | | | | | | This is the final commit in the series of commits that deliver initial support for Auto-Attach. Specifically this commit delivers auto-attach support to the OVS bridge layer as well as the new auto-attach commands. The OVSDB schema is modified to define the new auto-attach entries. The man pages, unit tests, and news and license notice files are also updated. A unit test is provided to validate the construction of auto-attach packets. Signed-off-by: Ludovic Beliveau <ludovic.beliveau@windriver.com> Signed-off-by: Dennis Flynn <drflynn@avaya.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovs-command-completion: Autotest integration.Alex Wang2015-01-301-0/+1
| | | | | | | | | This commit integrates the unit tests defined in utilities/ovs-command-compgen-test.bash into 'make check'. The tests will be skipped if the current shell is not bash. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* autotest: refactor OVS_VSWITCHD_START MACROAndy Zhou2015-01-161-100/+2
| | | | | | Refactor in preparation for the next patch. Signed-off-by: Andy Zhou <azhou@nicira.com>
* ofproto-dpif: Fix MPLS multiple Push pop action.Pravin B Shelar2014-12-181-0/+1
| | | | | | | | | | | | | vSwitchd does not generate correct MPLS actions for multiple MPLS push or pop action. Datapath can handle multiple push action for in single action list. But for after first MPLS pop it needs to recirculate packet to refill packet key. Following patch fixes it accordingly. Reported-by: Stefano Salsano <stefano.salsano@uniroma2.it> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Tested-by: Pier Luigi Ventre <pl.ventre@gmail.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
* openvswitch: Userspace tunneling.Pravin B Shelar2014-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Following patch adds support for userspace tunneling. Tunneling needs three more component first is routing table which is configured by caching kernel routes and second is ARP cache which build automatically by snooping arp. And third is tunnel protocol table which list all listening protocols which is populated by vswitchd as tunnel ports are added. GRE and VXLAN protocol support is added in this patch. Tunneling works as follows: On packet receive vswitchd check if this packet is targeted to tunnel port. If it is then vswitchd inserts tunnel pop action which pops header and sends packet to tunnel port. On packet xmit rather than generating Set tunnel action it generate tunnel push action which has tunnel header data. datapath can use tunnel-push action data to generate header for each packet and forward this packet to output port. Since tunnel-push action contains most of packet header vswitchd needs to lookup routing table and arp table to build this action. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Rapid Spanning Tree Protocol (IEEE 802.1D).Daniele Venturino2014-09-091-0/+1
| | | | | | | | | This is the v5 from June 12th, 2014, rebased to OVS master, further changes in following patches. Signed-off by: Daniele Venturino <daniele.venturino@m3s.it> Signed-off by: Martino Fornasa <mf@fornasa.it> Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Daniele Venturino <daniele.venturino@m3s.it>
* build: Allow building with autoconf 2.63Thomas Graf2014-06-271-0/+2
| | | | | | | | | | | | | | | | | | | | Reduces the dependency on autoconf from 2.64 to 2.63 to ease building on older platforms. There is only a few macros missing and they can be provided easily. A handful of tests needed modification. The difference in quoting behaviour between 2.63 and later require the m4_define() to be manually unfolded. The Debian control file is left untouched on purpose. The decision whether to adjust the dependency is left to the respective maintainers. Tested with autoconf 2.63 and 2.69. Cc: Scott Mann <smann@noironetworks.com> Cc: Don Kehn <dkehn@noironetworks.com> Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* testsuite.at: pids can have zero after first character.Gurucharan Shetty2014-06-101-4/+4
| | | | | | | | | | Fix the bug which did not kill the processes with pids that had a zero in them. Also, some tests do a AT_CHECK([kill `cat pid`]) which on windows prints something on the stdout causing the tests to fail. So supress it. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* bridge: Add test that ports that disappear get added back to the datapath.Ben Pfaff2014-05-221-1/+2
| | | | | | | | | The test added in this commit would have caught the bug fixed by commit 96be8de595150 (bridge: When ports disappear from a datapath, add them back.). With that commit reverted, the new test fails. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Gurucharan Shetty <gshetty@nicira.com>
* tests: Create dpif-netdev.at.Joe Stringer2014-05-191-0/+1
| | | | | | | | Shift datapath flow test macros and "ofproto-dpif - dummy interface" out into a separate file. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* testsuite.at: Workaround for carriage returns on windows.Gurucharan Shetty2014-04-221-0/+4
| | | | | | | | | | | | | | In unit tests, we compare text written in logs or stdout/stderr to figure out the success or failure of tests. In Windows, since new line is represented by CR+LF, autoconf tests run in MinGW environment fail. Asking diff to ignore trailing carriage returns is one way to solve the problem Suggested-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* testsuite.at: kill for windows.Gurucharan Shetty2014-04-221-0/+29
| | | | | | | | | | | | | | | | | | | | | | | We use kill to cleanup processes from pidfiles. Windows has a 'taskkill' which does something similar. We can check if the process with a PID exists with 'tasklist'. Both tasklist and taskkill return 0 for both success and failure. So, we will have to grep to see if there is a o/p. A typical o/p of tasklist is: $ tasklist | grep ovs ovsdb-server.exe 3228 RDP-Tcp#0 2 6,132 K ovs-vswitchd.exe 2080 RDP-Tcp#0 2 5,808 K $ tasklist //fi "PID eq 3228" Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ ovsdb-server.exe 3228 RDP-Tcp#0 2 6,132 K Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* testsuite.at: pwd for windows.Gurucharan Shetty2014-04-221-0/+6
| | | | | | | | | | | On MinGW, "pwd -W" gives the present working directory in the form of windows path (i.e C:/temp instead of /c/temp). When we pass the directory path to daemons as arguments, we should be passing it in the form of windows path. Suggested-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* ofproto-dpif.at: Wait for the monitor's pidfile disappears where necessaryYAMAMOTO Takashi2014-04-061-0/+8
| | | | | | | | | | | | | These tests invokes ovs-ofctl monitor twice or more. Because "ovs-appctl -t ofctl exit" does not wait for the target process exit, there are chances to see the pid file from the previous incarnation. OVS_APP_EXIT_AND_WAIT macro was provided by Ben Pfaff. Acked-by: Ben Pfaff <blp@nicira.com> Co-authored-by: Ben Pfaff <blp@nicira.com> Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
* vtep: Add vtep-ctl command.Justin Pettit2013-10-171-0/+1
| | | | | | | | The vtep-ctl command provides a user interface to manipulate the VTEP OVSDB schema. Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* cfm: Prevent interval fault when demand mode is enabled on one end.alex wang2013-09-191-0/+1
| | | | | | | | | This commit prevents cfm from raising 'interval' fault when demand mode is only enabled on one end of link. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
* timeval: Remove CACHE_TIME scheme.Alex Wang2013-09-041-1/+0
| | | | | | | | | | | | | | This commit removes the CACHE_TIME scheme from timeval module. This is for eliminating the lock contention over the read/write lock of the cached time. To get the time, the thread now will directly do the system call 'clock_gettime()'. As a side effect, timer can only be warpped after timer is stopped by 'appctl time/stop' command. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
* BFD: Unit tests for BFD.Pavithra Ramesh2013-07-301-0/+1
| | | | | | Signed-off-by: Pavithra Ramesh <paramesh@vmware.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
* Add VLAN splinters unit test.Ben Pfaff2013-06-251-0/+1
| | | | | CC: Ethan Jackson <ethan@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: Add test for ovs-vswitchd regression with empty db.Ben Pfaff2013-04-121-1/+2
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* nicira-ext: Remove the autopath action.Ethan Jackson2013-02-051-1/+0
| | | | | | | | | The autopath action was attempting to achieve functionality similar to the bundle action, but was significantly clunkier, more difficult to understand, more difficult to use, and less reliable. This patch removes it. Signed-off-by: Ethan Jackson <ethan@nicira.com>
* tests: Add tunnel unit tests.Ethan Jackson2013-01-281-0/+1
| | | | | | | This commit adds unit tests which exercise the flow based tunneling code added in previous patches. Signed-off-by: Ethan Jackson <ethan@nicira.com>
* tests: Add tests for encoding and decoding OpenFlow hello messages.Ben Pfaff2012-11-091-0/+1
| | | | | | These tests helped me find the problems that I fixed in previous commits. Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: New m4 macro ON_EXIT to add a cleanup action.Ben Pfaff2012-08-201-0/+11
| | | | | | | | | | | | | | | Several of the tests start daemons and then need to make sure that the daemons get killed when the test completes, even if it completes in the middle due to an early failure. Until now, they have been using manual shell "trap" calls to do this. This works well enough for simple cases, but sometimes multiple macros start daemons in a single test, and then each "trap" has to be carefully written to kill off the daemons for the previously invoked macros. This commit introduces a new macro ON_EXIT whose use is composable: each call appends a new action to the ones already specified. Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: Factor "seq" shell function out into common infrastructure.Ben Pfaff2012-08-161-0/+8
| | | | | | An upcoming patch will introduce a second user. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Introduce ofpacts, an abstraction of OpenFlow actions.Ben Pfaff2012-07-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | OpenFlow actions have always been somewhat awkward to handle. Moreover, over time we've started creating actions that require more complicated parsing. When we maintain those actions internally in their wire format, we end up parsing them multiple times, whenever we have to look at the set of actions. When we add support for OpenFlow 1.1 or later protocols, the situation will get worse, because these newer protocols support many of the same actions but with different representations. It becomes unrealistic to handle each protocol in its wire format. This commit adopts a new strategy, by converting OpenFlow actions into an internal form from the wire format when they are read, and converting them back to the wire format when flows are dumped. I believe that this will be more maintainable over time. Thanks to Simon Horman and Pravin Shelar for reviews. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Add error codes for Open Flow v1.2Simon Horman2012-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | * Where Open Flow 1.2 breaks apart error codes defined in previous versions, provide all new definitions to previous versions and map the numeric error code to the first first definition supplied in ofp-errors.h. The case handled so far is: OFPERR_OFPBIC_BAD_EXP_TYPE -> { OFPERR_OFPBIC_BAD_EXPERIMENTER, OFPERR_OFPBIC_BAD_EXP_TYPE } * Where Open Flow 1.2 adds error codes that were previously defined as Nicira extension errors define the later in terms of the new codes. Signed-off-by: Simon Horman <horms@verge.net.au> [blp@nicira.com added better error checking in extract-ofp-errors, added unit tests, miscellaneous cleanup] Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Simon Horman <horms@verge.net.au>
* tests: Convert OVS_WAIT_* macros to shell functions.Ben Pfaff2012-03-071-14/+24
| | | | | | | This reduces tests/testsuite by about 35 kB, by collapsing a number of macro expansions into just one copy in a shell function. Signed-off-by: Ben Pfaff <blp@nicira.com>
* python: Port unixctl to Python.Ethan Jackson2012-03-021-0/+1
| | | | | | | | | Many of the currently implemented Python daemons, and likely many daemons to be implemented in the future, could benefit from unixctl support even if only to implement "exit" and "version" commands. This patch implements unixctl in Python. Signed-off-by: Ethan Jackson <ethan@nicira.com>
* heap: New library that implements a binary heap-based priority queue.Ben Pfaff2012-02-011-1/+2
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* tests: Perform basic LACP unit tests.Ethan Jackson2011-11-301-0/+1
| | | | | This patch adds tests which check that configuration settings in the database are reflected in the LACP module's appctl output.
* Add back 802.1D Spanning Tree Protocol (STP) library code.Justin Pettit2011-10-221-0/+1
| | | | | | | | | | | | At one point, the OVS distribution contained an IEEE 802.1D Spanning Tree Protocol (STP) library written by Ben Pfaff and based on the 802.1D-1998 reference code. It was never integrated into ovs-vswitchd, so it was removed as part of commit ba18611 (Remove vestigial support for Spanning Tree Protocol.) This commit reintroduces the library, cleans up a few spots, and makes it build cleanly against new code. A future commit will have ovs-vswitchd use this library.
* python: Create new vlog module.Ethan Jackson2011-09-271-0/+1
| | | | | | | | | | | | Currently, each python daemon has to come up with it's own logging solution. These logging strategies are not consistent across the python code or with the C vlog module. This patch adds a new logging module which hopes to solve the problem. This new module generates log messages in a manner consistent with the C code. Furthermore, it can easily be extended to support things like rate limiters in the future. This patch does not update any python code to use the new module.
* ovs-xapi-sync: Add unit test.Ben Pfaff2011-09-261-0/+1
|
* ovs-monitor-ipsec: Add unit test.Ben Pfaff2011-09-261-0/+1
|
* Implement new "learn" action.Ben Pfaff2011-09-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | There are a few loose ends here. First, learning actions cause too much flow revalidation. Upcoming commits will fix that problem. The following additional issues have not yet been addressed: * Resource limits: nothing yet limits the maximum number of flows that can be learned. It is possible to exhaust all system memory. * Age reporting: there is no way to find out how soon a learned table entry is due to be evicted. To try this action out, here's a recipe for a very simple-minded MAC learning switch. It uses a 10-second MAC expiration time to make it easier to see what's going on: ovs-vsctl del-controller br0 ovs-ofctl del-flows br0 ovs-ofctl add-flow br0 "table=0 actions=learn(table=1, hard_timeout=10, \ NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], \ output:NXM_OF_IN_PORT[]), resubmit(,1)" ovs-ofctl add-flow br0 "table=1 priority=0 actions=flood" You can then dump the MAC learning table with: ovs-ofctl dump-flows br0 table=1
* New action NXAST_RESUBMIT_TABLE.Ben Pfaff2011-08-091-0/+1
| | | | | This makes multiple table support in ofproto-dpif useful, by allowing resubmits into tables other than 0.
* odp-util: New function odp_flow_key_from_string().Ben Pfaff2011-08-081-0/+1
| | | | This will be used in upcoming commits.
* vswitch: Implement bundle action.Ethan Jackson2011-07-191-0/+1
| | | | | | This patch creates a new action called "bundle". Bundles are a way to implement a simple form of multipath in OpenFlow by grouping several ports in a single output-like action.
* tests: Unit test autopath via ovs-ofctl.Ethan Jackson2011-04-121-0/+1
| | | | | This patch adds test designed to verify the correctness of the parsing function introduced with the autopath action.