Ejemplo n.º 1
0
func (mapper *OvsMapper) Enhance(mac string, attrs *flow.Flow_InterfaceAttributes) {
	if mapper.Topology != nil {
		container := mapper.Topology.GetPort(attrs.GetIfName())
		if container != nil {
			attrs.BridgeName = proto.String(container.ID)
			return
		}
	}
	attrs.BridgeName = proto.String("")
}