ds_put_format(ds, "\nslave %s: %s\n",
slave->name, slave->enabled ? "enabled" : "disabled");
if (slave == bond->active_slave) {
- ds_put_cstr(ds, "\tactive slave\n");
+ ds_put_cstr(ds, " active slave\n");
}
if (slave->delay_expires != LLONG_MAX) {
- ds_put_format(ds, "\t%s expires in %lld ms\n",
+ ds_put_format(ds, " %s expires in %lld ms\n",
slave->enabled ? "downdelay" : "updelay",
slave->delay_expires - time_msec());
}
- ds_put_format(ds, "\tmay_enable: %s\n",
+ ds_put_format(ds, " may_enable: %s\n",
slave->may_enable ? "true" : "false");
if (!bond_is_balanced(bond)) {
be_tx_k = be->tx_bytes / 1024;
if (be_tx_k) {
- ds_put_format(ds, "\thash %d: %"PRIu64" kB load\n",
+ ds_put_format(ds, " hash %d: %"PRIu64" kB load\n",
hash, be_tx_k);
}
active slave mac: 00:00:00:00:00:00(none)
slave p1: disabled
- may_enable: false
+ may_enable: false
slave p2: disabled
- may_enable: false
+ may_enable: false
])
OVS_VSWITCHD_STOP
lacp_fallback_ab: false
slave p0: enabled
- may_enable: true
+ may_enable: true
slave p1: enabled
- may_enable: true
+ may_enable: true
---- bond1 ----
bond_mode: balance-tcp
lacp_fallback_ab: false
slave p2: enabled
- may_enable: true
+ may_enable: true
slave p3: enabled
- may_enable: true
+ may_enable: true
])
AT_CHECK([grep 'active slave$' stdout], [0], [dnl
- active slave
- active slave
+ active slave
+ active slave
])
# Redirect the patch link between p0 and p2 so that no packets get
<active slave mac del>
slave p0: disabled
- may_enable: false
+ may_enable: false
slave p1: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
---- bond1 ----
bond_mode: balance-tcp
<active slave mac del>
slave p2: disabled
- may_enable: false
+ may_enable: false
slave p3: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
])
<active slave mac del>
slave p0: disabled
- may_enable: false
+ may_enable: false
slave p1: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
---- bond1 ----
bond_mode: balance-tcp
<active slave mac del>
slave p2: disabled
- may_enable: false
+ may_enable: false
slave p3: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
])
<active slave mac del>
slave p0: enabled
- may_enable: true
+ may_enable: true
slave p1: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
---- bond1 ----
bond_mode: balance-tcp
<active slave mac del>
slave p2: enabled
- may_enable: true
+ may_enable: true
slave p3: enabled
- active slave
- may_enable: true
+ active slave
+ may_enable: true
])
])
# bond/show should show 'may-enable: true' for all slaves.
AT_CHECK([ovs-appctl bond/show | sed -n '/^.*may_enable:.*/p'], [0], [dnl
- may_enable: true
- may_enable: true
- may_enable: true
- may_enable: true
+ may_enable: true
+ may_enable: true
+ may_enable: true
+ may_enable: true
])
# now disable the bfd on p1.
])
# bond/show should show 'may-enable: false' for p0.
AT_CHECK([ovs-appctl bond/show br0bond | sed -n '/^.*may_enable:.*/p'], [0], [dnl
- may_enable: false
- may_enable: true
+ may_enable: false
+ may_enable: true
])
# now enable the bfd on p1 and disable bfd on p0.
])
# bond/show should show 'may-enable: false' for p0 and p1.
AT_CHECK([ovs-appctl bond/show | sed -n '/^.*may_enable:.*/p'], [0], [dnl
- may_enable: false
- may_enable: true
- may_enable: false
- may_enable: true
+ may_enable: false
+ may_enable: true
+ may_enable: false
+ may_enable: true
])
OVS_VSWITCHD_STOP