summaryrefslogtreecommitdiff
path: root/tests/dpctl.at
Commit message (Collapse)AuthorAgeFilesLines
* netdev-dummy: Add dummy-internal class.Daniele Di Proietto2016-08-151-6/+6
| | | | | | | | | | | | | | | | | | "internal" netdevs are treated specially in OVS (e.g. for MTU), but the dummy datapath remaps both "system" and "internal" devices to the same "dummy" netdev class, so there's no way to discern those in tests. This commit adds a new "dummy-internal" netdev type, which will be used by the dummy datapath for internal ports, so that other parts of the code can understand which ports are internal just by looking at the netdev object. The alternative solution, using the original interface type ("internal") instead of the translated netdev type ("dummy"), is harder to implement, because in so many places only the netdev object is available. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ben Pfaff <blp@ovn.org>
* dpif-netdev: use the open_type when creating the local portThadeu Lima de Souza Cascardo2016-07-271-6/+7
| | | | | | | | | | | | | | | Instead of using the internal type, use the port_open_type when creating the local port. That makes sure that whenever dpif_port_query is used, the netdev open_type is returned instead of the "internal" type. For other ports, that is already the case, as the netdev type is used when creating the dp_netdev_port. That changes the output of dpctl when showing the local port, and also when trying to change its type. So, corresponding tests are fixed. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* dpctl.at: Ignore vlog rate limit warning.Paul Boca2016-06-281-1/+2
| | | | | | The message "Dropped 1 log messages in the last ..." makes this test fail. Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com>
* dpctl.at: tap devices don't exist on Windows.Gurucharan Shetty2015-04-221-6/+6
| | | | | | | | The tests fail on Windows because tap device is not a valid device on Windows. Use "dummy" device instead. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* dpctl.at: Ignore string representation of error messages in output.Ben Pfaff2015-04-211-9/+14
| | | | | | | | | | Different C libraries represent the same error code (particularly ENODEV) differently. This caused spurious test failures on BSD. This commit avoids the problem by ignoring the error string representations entirely. Reported-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
* dpctl: Add tests.Ben Pfaff2015-04-161-0/+80
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>