Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/agent/server/guest.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/digitalocean/go-openvswitch/ovs"

"yunion.io/x/log"
"yunion.io/x/pkg/gotypes"
"yunion.io/x/sdnagent/pkg/agent/utils"

"yunion.io/x/onecloud/pkg/mcclient/auth"
Expand Down Expand Up @@ -187,6 +188,10 @@ func (g *Guest) clearClassicFlows(ctx context.Context) {
}
for bridge, _ := range bridges {
flowman := g.watcher.agent.GetFlowMan(bridge)
// 宿主机换过网桥名称,且宿主机上的虚拟机一直关机,未推送配置,会导致flowman为nil
if gotypes.IsNil(flowman) {
continue
}
flowman.updateFlows(ctx, g.Who(), []*ovs.Flow{})
}
g.clearPending()
Expand Down
Loading