aboutsummaryrefslogtreecommitdiff
path: root/utilities
AgeCommit message (Collapse)Author
2011-04-11autopath: Create the autopath action.Ethan Jackson
The newly created autopath action will be the way OpenFlow interacts with the existing bonding infrastructure.
2011-04-04daemon: Integrate checking for an existing pidfile into daemonize_start().Ben Pfaff
Until now, it has been the responsibility of an individual daemon to call die_if_already_running() at an appropriate time. A long time ago, this had to happen *before* daemonizing, because once the process daemonized itself there was no way to report failure to the process that originally started the daemon. With the introduction of daemonize_start(), this is now possible, but we haven't been taking advantage of it. Therefore, this commit integrates the die_if_already_running() call into daemonize_start() and deletes the calls to it from individual daemons.
2011-04-04Log anything that could prevent a daemon from starting.Ben Pfaff
If a daemon doesn't start, we need to know why. Being able to consistently consult the log to find out is helpful.
2011-04-04util: New function ovs_fatal_valist().Ben Pfaff
This commit adds a few initial users but more are coming up.
2011-03-31ovs-openflowd: Use sset in place of svec.Ben Pfaff
Also deletes svec_split() since this was the only user.
2011-03-31ofproto: Change string sets in interface from svec to sset.Ben Pfaff
2011-03-31dpif: Use sset instead of svec in dpif interface.Ben Pfaff
2011-03-31Convert shash users that don't use the 'data' value to sset instead.Ben Pfaff
In each of the cases converted here, an shash was used simply to maintain a set of strings, with the shash_nodes' 'data' values set to NULL. This commit converts them to use sset instead.
2011-03-31ovs-ofctl: Remove dead assignment.Ethan Jackson
2011-03-30Fix compilation of openvswitch-1.1.0pre2 on FreeBSD-8.1Gaetano Catalli
2011-03-29ovs-vsctl: Remove dead assignment.Ethan Jackson
Noticed this last night while playing around with the clang static analyzer.
2011-03-29ovs-vsctl: Remove dead code.Ethan Jackson
Coverity #10710.
2011-03-22gitignore: Added ovs-vlan-bug-workaround and testsEthan Jackson
2011-03-22utilities: Add ovs-vlan-bug-workaround to make distcleanEthan Jackson
This was causing and error during make distcheck for me.
2011-03-18ovs-ofctl: Make mod-flows and del-flows commands able read files.Ben Pfaff
This makes it possible to modify or delete multiple flows in one run, which is sometimes convenient. Requested-by: Paul Ingram <paul@nicira.com>
2011-03-18ofp-parse: Generalize parse_ofp_add_flow_file() to parse_ofp_flow_mod_file().Ben Pfaff
An upcoming commit will want to pass a different command.
2011-03-18ovs-ofctl: New commands "replace-flows" and "diff-flows".Ben Pfaff
Requested-by: Paul Ingram <paul@nicira.com>
2011-03-18ovs-ofctl: Use ovs_be32 for big-endian variable.Ben Pfaff
2011-03-16ovs-vsctl: Back out garbage collection changes.Ethan Jackson
Garbage collection introduced in c5f341ab193b9126dffef8c77bf8ed35e91290fd changed ovs-vsctl so that it would allow the garbage collector to reclaim unused tables instead of manually deleting them itself. Since garbage collection runs at transaction completion, undeleted tables would hang around and could conflict with future actions in a given transaction. This commit backs out this change. The following command is an example of something that would have failed before this commit. ovs-vsctl -- add-br b \ -- del-br b \ -- add-br b \ -- set Interface b other_config:test=test
2011-03-16utilities: Fix typo in makefile that caused RPM build failure.Ben Pfaff
I tested this against our autobuilder and it passed.
2011-03-16ofproto: Remove controller discovery support.Ben Pfaff
I've never heard of anyone actually using controller discovery. It adds a great deal of code to the source tree, and a little bit of complication to ofproto, so this commit removes it.
2011-03-16ofproto: Get rid of archaic "switch status" OpenFlow extension.Ben Pfaff
Back in 2008 or so, I introduced this extension as a way to provide information about switch status to the new "switch UI" program. Since then, the switch UI program has been removed and the important information that was provided by the switch status extension is now available in the database, so we might as well get rid of this extension, and that is what this commit does.
2011-03-16ovs-ofctl: Check min flow format support in negotiate_highest_flow_format().Ben Pfaff
When the -F option wasn't set, or if it was set to an invalid flow format for the match, this code would happily select a flow format that did not select the user's requested match if the switch didn't support an advanced-enough flow format. This fixes the problem. It also changes behavior in the case where the user specifies a flow format that cannot represent the match, changing this from a warning to a fatal error; this is consistent with -F behavior for flow_mod commands.
2011-03-16Support vlan_group workaround implemented in XenServer kernels.Ben Pfaff
Some Linux network drivers support a feature called "VLAN acceleration", associated with a data structure called a "vlan_group". A vlan_group is, abstractly, a dictionary that maps from a VLAN ID (in the range 0...4095) to a VLAN device, that is, a Linux network device associated with a particular VLAN, e.g. "eth0.9" for VLAN 9 on eth0. Some drivers that support VLAN acceleration have bugs that fall roughly into the following categories: * Some NICs strip VLAN tags on receive if no vlan_group is registered, so that the tag is completely lost. * Some drivers size their receive buffers based on whether a vlan_group is enabled, meaning that a maximum size packet with a VLAN tag will not fit if a vlan_group is not configured. * On transmit some drivers expect that VLAN acceleration will be used if it is available (which can only be done if a vlan_group is configured). In these cases, the driver may fail to parse the packet and correctly setup checksum offloading and/or TSO. The correct long term solution is to fix these driver bugs. To cope until then, we have prepared a patch to the Linux kernel network stack that works around these problems. This commit adds support for the workaround implemented by that patch. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
2011-03-10ovsdb: Implement garbage collection.Ben Pfaff
2011-03-10ovsdb-data: Expose guts of ovsdb_symbol_table() to clients.Ben Pfaff
ovs-vsctl will, in upcoming commits, want to more closely examine its ovsdb_symbol_table structures. This could be done by providing a more complete API, but it doesn't seem worth it to me. This commit instead goes the other way, exposing the internals to clients. This commit also eliminates the ovsdb_symbol_table_find_uncreated() function, which ovs-vsctl can now implement itself.
2011-03-10ovsdb-data: Rename 'used' to 'created' in struct ovsdb_symbol.Ben Pfaff
The name 'created' better reflects the actual meaning of this member: in both ovsdb and ovs-vsctl, it is true if a row has been created with the symbol's UUID and false otherwise.
2011-03-10ovs-vsctl: Remove stray \ from end of manpage.Ben Pfaff
2011-03-10ovs-vsctl: Update list of tables in manpage.Ben Pfaff
The QoS and Queue tables weren't mentioned at all, and some of the tables were in a different order from that in vswitch.xml. This fixes both.
2011-03-10ovs-vsctl: Check for uncreated symbols earlier.Ben Pfaff
The check for uncreated symbols does not rely on anything that happens during transaction commit, so there is no point in allowing the transaction to be sent to the database server, only to fail there, before reporting the problem locally.
2011-03-09ovs-ofctl: Make add-flows command read from stdin if file name is "-".Ben Pfaff
It is conventional for Unix tools to read from standard input if "-" is specified as a file name. It's easy for "ovs-ofctl add-flows" to behave this way, too, so this commit implements it. Suggested-by: Paul Ingram <paul@nicira.com>
2011-03-09utilities: Improve ovs-vlan-test man page.Ethan Jackson
The IP addresses used in the ovs-vlan-test example where more or less random. This caused a great deal of confusion which hopefully this patch will remedy. Also changes the management port to 8080 in the examples because XenServer uses port 80 on Dom0 for something.
2011-03-04ovs-dpctl: Support more than one option for "add-if" command.Ben Pfaff
This "while" loop in do_add_if() is supposed to split up everything after the interface name with ',' as the delimiter, but it didn't do that correctly. Also corrects a typo in the manpage pointed out by Justin Pettit.
2011-03-01ovs-ofctl: Implement documented semantics of --flow-format for flow_mods.Ben Pfaff
Also adds a test and moves some code around in tests/ to make sure that OFPROTO_START and OFPROTO_STOP are available in tests/ovs-ofctl.at. Reported-by: Michael Mao <mmao@nicira.com> Bug #4566.
2011-02-23ovs-vsctl: Clarify that uuid_from_string() shouldn't fail in post_create().Ben Pfaff
Coverity #10701.
2011-02-23ovs-kill: Remove.Ben Pfaff
This utility isn't used anywhere (except INSTALL.Linux), so remove it. Signed-off-by: Ben Pfaff <blp@nicira.com> Coverity #10708.
2011-02-23ovs-vsctl: Simplify parse_column_key_value().Ben Pfaff
Coverity pointed out some inconsistencies on tests for whether columnp and keyp were nonnull. These tests were, at best, confusing, but in fact every caller always passed nonnull for both parameters, so this commit drops all of those tests. Coverity #10715, 10710.
2011-02-23ovs-vsctl: Free "columns" in cmd_find().Justin Pettit
Coverity #10730
2011-02-23multipath: Validate multipath actions more thoroughly in multipath_parse().Ben Pfaff
The stricter validation requires updates to the calls to test-multipath to supply a valid n_links value. test-multipath doesn't actually use that value (it runs over different values in an internal "for" loop), so this doesn't change any behavior. Also adds a test to exercise each possible multipath_parse() error message. Reported-by: Reid Price <reid@nicira.com> Bug #4462.
2011-02-22ovs-vsctl: --bootstrap only has an effect if the ca cert is missing.Ben Pfaff
Someone (I can't remember who) asked me about this a while ago. I hope this clarifies.
2011-02-22ovs-vsctl: Check "key" is valid before dereferencing in get_external_id().Justin Pettit
Coverity #10716
2011-02-18ovsdb: Remove 'managers' column from 'Open vSwitch' table.Andrew Evans
We had retained but deprecated the use of the older 'managers' column in the 'Open vSwitch' table for compatibility with applications that might still use it, but that created more problems than it solved. This commit removes the 'managers' column from the schema, and removes all references to it from the code, init scripts, documentation, and tests.
2011-02-15ovs-vsctl: Improve documentation and --help output.Ben Pfaff
2011-02-08xenserver: Introduce "force-reload-kmod" to reload kernel module.Ben Pfaff
Running "service openvswitch force-reload-kmod" will now save the kernel configuration state of Open vSwitch interfaces, stop the vswitch, unload the kernel module, reload the kernel module, restart the vswitch, and restore kernel configuration state. It is a reasonably safe way to upgrade or downgrade the Open vSwitch kernel module on a running system. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-02-08ovs-vsctl: Add formatting options for the "list" and "find" commands.Ben Pfaff
The default format is the same as before (which the testsuite verifies). The most important use for the new formatting options is --bare, which outputs a format that is easy to parse from a shell script. An upcoming patch will start using that.
2011-02-08ovs-vsctl: Add new "find" command.Ben Pfaff
This allows listing records that match specified criteria, instead of just records that have specific names. This will be used in an upcoming patch, along with --columns, to list all of the interfaces whose type is 'internal'.
2011-02-08ovs-vsctl: Add --columns options to "list" command.Ben Pfaff
This allows the user to list just selected columns from a table, for example just the "name" column. This will become more useful as additional formatting options are added in upcoming commits.
2011-02-08ovs-vsctl: Fix spelling of "satisfied" in function name.Ben Pfaff
Suggested-by: Ethan Jackson <ethan@nicira.com>
2011-02-07ovs-vsctl: Add commands to get/delete/set manager connections.Andrew Evans
2011-02-07daemon: Define daemon options enums the same way as other option enums.Ben Pfaff
Other modules that accept options use this style and I don't see a reason for the daemon code to be different. The style used by the daemon code until now runs the risk of ending up with conflicting values accidentally, which would be confusing.