/** * Construct a new instance. * * @param dpid A {@link DatapathId} instance. */ public OfNode(DatapathId dpid) { // Eliminate octet separator. String hex = HEX_SEPARATOR_MATCHER.removeFrom(dpid.getValue()); nodeNumber = new BigInteger(hex, HEX_RADIX); }
public static DatapathId getDefaultInstance(String defaultValue) { return new DatapathId(defaultValue); }
@ConstructorProperties("value") public DatapathId(java.lang.String _value) { if (_value != null) { check_valueLength(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); for (Pattern p : patterns) { Preconditions.checkArgument(p.matcher(_value).matches(), "Supplied value \"%s\" does not match required pattern \"%s\"", _value, p); } this._value = _value; }
public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
public static DatapathId createDatapathId(String dpid) { Preconditions.checkNotNull(dpid); DatapathId datapath; if (dpid.matches("^[0-9a-fA-F]{16}")) { Splitter splitter = Splitter.fixedLength(2); Joiner joiner = Joiner.on(":"); datapath = new DatapathId(joiner.join(splitter.split(dpid))); } else { datapath = new DatapathId(dpid); } return datapath; }
public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
DatapathId datapathId = new DatapathId(dpid); ovsdbBridgeAugmentationBuilder.setDatapathId(datapathId);
public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
Long dpid = getLongFromDpid(ovsdbBridgeAugmentation.getDatapathId().getValue()); if (nodeName.equals("openflow:" + String.valueOf(dpid))) { for (TerminationPoint tp : tpList) {
return null; Long macLong = getLongFromDpid(datapathId.getValue());