In some circumstances we try to send a configuration update to the
controller, regardless of whether we're actually connected. This fixes
that and warns if others try to do similar things.
* resent automatically. If we're not reconnecting and the
* config file has changed, we need to notify the controller of
* changes. */
- if (cfg_updated) {
+ if (cfg_updated && mgmt_rconn) {
send_config_update(0, false);
}
return;
{
int retval;
+ if (!mgmt_rconn) {
+ VLOG_ERR("attempt to send openflow packet with no rconn\n");
+ return EINVAL;
+ }
+
update_openflow_length(buffer);
retval = rconn_send_with_limit(mgmt_rconn, buffer, txqlen, TXQ_LIMIT);
if (retval) {