Exemplo n.º 1
0
func (u *NetLinkTopoUpdater) addLinkToTopology(link netlink.Link) {
	var intf *Interface

	switch link.Type() {
	/* ignore the openswitch interface as it will be handled
	   by the ovs updater */
	case "openvswitch":
	case "veth":
	case "bridge":
	default:
		intf = u.addGenericLinkToTopology(link)
	}

	if intf != nil {
		intf.Type = link.Type()
	}
}