struct slave *key_slave; /* Slave whose ID will be the aggregation key. */
bool fast; /* Fast or Slow LACP time. */
+ bool strict; /* True if in strict mode. */
bool negotiated; /* True if LACP negotiations were successful. */
bool update; /* True if lacp_update() needs to be called. */
};
}
if (!eth_addr_equals(lacp->sys_id, s->id)
- || lacp->sys_priority != s->priority) {
+ || lacp->sys_priority != s->priority
+ || lacp->strict != s->strict) {
memcpy(lacp->sys_id, s->id, ETH_ADDR_LEN);
lacp->sys_priority = s->priority;
+ lacp->strict = s->strict;
lacp->update = true;
}
\f
/* Static Helpers. */
-/* Updates the attached status of all slaves controlled b 'lacp' and sets its
+/* Updates the attached status of all slaves controlled by 'lacp' and sets its
* negotiated parameter to true if any slaves are attachable. */
static void
lacp_update_attached(struct lacp *lacp)
slave->attached = false;
}
}
+ } else if (lacp->strict) {
+ HMAP_FOR_EACH (slave, node, &lacp->slaves) {
+ slave->attached = false;
+ }
}
}
}
ds_put_format(&ds, "lacp: %s\n", lacp->name);
- ds_put_format(&ds, "\tstatus: %s %s\n",
- lacp->active ? "active" : "passive",
- lacp->negotiated ? "negotiated" : "");
+
+ ds_put_format(&ds, "\tstatus: %s", lacp->active ? "active" : "passive");
+ if (lacp->strict) {
+ ds_put_cstr(&ds, " strict");
+ }
+ if (lacp->negotiated) {
+ ds_put_cstr(&ds, " negotiated");
+ }
+ ds_put_cstr(&ds, "\n");
+
ds_put_format(&ds, "\tsys_id: " ETH_ADDR_FMT "\n", ETH_ADDR_ARGS(lacp->sys_id));
ds_put_format(&ds, "\tsys_priority: %u\n", lacp->sys_priority);
ds_put_cstr(&ds, "\taggregation key: ");
<column name="lacp">
<p>Configures LACP on this port. LACP allows directly connected
- switches to negotiate which links may be bonded. LACP may be enabled
- on non-bonded ports for the benefit of any switches they may be
+ switchs to negotiate which links may be bonded. LACP may be enabled
+ on non-bonded ports for the benefit of any switchs they may be
connected to. <code>active</code> ports are allowed to initiate LACP
negotiations. <code>passive</code> ports are allowed to participate
in LACP negotiations initiated by a remote switch, but not allowed to
configured to be <code>fast</code> more frequent LACP heartbeats
will be requested causing connectivity problems to be detected more
quickly.</dd>
+ <dt><code>lacp-strict</code></dt>
+ <dd> When <code>true</code>, configures this <ref table="Port"/> to
+ require successful LACP negotiations to enable any slaves.
+ Defaults to <code>false</code> which safely allows LACP to be used
+ with switchs that do not support the protocol.</dd>
</dl>
</column>
</group>