Signed-off-by: Matthias May <matthias....@neratec.com> --- vswitchd/bridge.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 867a26d8d..316e4742e 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -966,6 +966,17 @@ port_configure(struct port *port) s.slaves[s.n_slaves++] = iface->ofp_port; } + /* Get port_group. */ + if (cfg->port_group) { + if ((*cfg->port_group > 0 && *cfg->port_group < OFPP_MAX) + || *cfg->port_group == OFPP_LOCAL) { + s.port_group = (uint32_t) *cfg->port_group; + } + } else { + /* On a port with multiple interfaces we default to the first. */ + s.port_group = s.slaves[0]; + } + /* Get VLAN tag. */ s.vlan = -1; if (cfg->tag && *cfg->tag >= 0 && *cfg->tag <= 4095) { -- 2.11.0 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev