private Integer fetchTenantId(final OFMatch match, final Mappable map, final boolean useMAC) { MACAddress mac = MACAddress.valueOf(match.getDataLayerSource()); if (useMAC && map.hasMAC(mac)) { try { return map.getMAC(mac); } catch (AddressMappingException e) { log.warn("Tried to return non-mapped MAC address : {}", e); } } return null; }
if (match.getDataLayerSource() != null) { this.setDataLayerSource(match.getDataLayerSource(), null); } else { this.dataLayerSource = null;
/** * Instantiates a new OVXmatch from an OFMatch instance. * * @param match * the match */ public OVXMatch(final OFMatch match) { this.wildcards = match.getWildcards(); this.inputPort = match.getInputPort(); this.dataLayerSource = match.getDataLayerSource(); this.dataLayerDestination = match.getDataLayerDestination(); this.dataLayerVirtualLan = match.getDataLayerVirtualLan(); this.dataLayerVirtualLanPriorityCodePoint = match .getDataLayerVirtualLanPriorityCodePoint(); this.dataLayerType = match.getDataLayerType(); this.networkTypeOfService = match.getNetworkTypeOfService(); this.networkProtocol = match.getNetworkProtocol(); this.networkSource = match.getNetworkSource(); this.networkDestination = match.getNetworkDestination(); this.transportSource = match.getTransportSource(); this.transportDestination = match.getTransportDestination(); this.cookie = 0; this.pktData = null; }
.getVirtualNetwork(this.getTenantId()) .getFlowManager() .getFlowId(fm.getMatch().getDataLayerSource(), fm.getMatch().getDataLayerDestination()); } catch (NetworkMappingException e) {
.getVirtualNetwork(this.getTenantId()) .getFlowManager() .storeFlowValues(fm.getMatch().getDataLayerSource(), fm.getMatch().getDataLayerDestination()); link.generateLinkFMs(fm.clone(), flowId);
HexString.toHexString(match.getDataLayerDestination())); jGen.writeStringField("dataLayerSource", HexString.toHexString(match.getDataLayerSource())); String dataType = Integer.toHexString(match.getDataLayerType()); while (dataType.length() < 4) {
.getFlowManager() .storeFlowValues( fe.getMatch().getDataLayerSource(), fe.getMatch() .getDataLayerDestination());
.getVirtualNetwork(sw.getTenantId()) .getFlowManager() .getFlowId(this.match.getDataLayerSource(), this.match.getDataLayerDestination()); OVXLinkUtils lUtils = new OVXLinkUtils(
if (match.getDataLayerSource() != null && !NetUtils.isZeroMAC(match.getDataLayerSource())) { this.setDataLayerSource(match.getDataLayerSource(), null); } else { this.dlSourceState = MatchFieldState.MATCH_ABSENT;
ofMatch.getInputPort(), node))); if (ofMatch.getDataLayerSource() != null && !NetUtils .isZeroMAC(ofMatch.getDataLayerSource())) { byte srcMac[] = ofMatch.getDataLayerSource(); salMatch.setField(new MatchField(MatchType.DL_SRC, srcMac.clone()));
tmatch.getDataLayerSource(), omatch.getDataLayerSource())) { return DISJOINT;