Skip to content

Commit

Permalink
graph: let netlink delete the ovs interfaces if not handled by ovs
Browse files Browse the repository at this point in the history
Change-Id: I91412e05e0fe424ed1f61b39b2de613ddc5a4e86
Reviewed-on: http://softwarefactory-project.io/r/4940
Reviewed-by: Sylvain Baubeau <[email protected]>
Tested-by: Sylvain Baubeau <[email protected]>
Workflow: Sylvain Baubeau <[email protected]>
Tested-by: Jenkins CI <[email protected]>
  • Loading branch information
safchain authored and Jenkins CI committed Oct 3, 2016
1 parent 85400e2 commit b0309f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topology/probes/netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (u *NetLinkProbe) onLinkDeleted(index int) {
_, err := netlink.LinkByIndex(index)
if err != nil && intf != nil {
// if openvswitch do not remove let's do the job by ovs piece of code
if intf.Metadata()["Driver"] == "openvswitch" {
if intf.Metadata()["Driver"] == "openvswitch" && intf.Metadata()["UUID"] != "" {
u.Graph.Unlink(u.Root, intf)
} else {
u.Graph.DelNode(intf)
Expand Down

0 comments on commit b0309f2

Please sign in to comment.