public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
public String getDatapathId(OvsdbBridgeAugmentation ovsdbBridgeAugmentation) { String datapathId = null; if (ovsdbBridgeAugmentation != null && ovsdbBridgeAugmentation.getDatapathId() != null) { datapathId = ovsdbBridgeAugmentation.getDatapathId().getValue(); } return datapathId; }
/** * Return the OpenFlow node associated with the given OVSDB topology node. * * @param ovh An {@link OVSDBEventHandler} instance. * @param node A {@link Node} instance. * @return An {@link OfNode} instance on success. * {@code null} on error. */ static OfNode getOfNode( @Nonnull OVSDBEventHandler ovh, @Nonnull Node node) { OfNode ofnode = null; OvsdbBridgeAugmentation ovbr = getBridgeNode(ovh, node); if (ovbr != null) { DatapathId dpid = ovbr.getDatapathId(); try { ofnode = new OfNode(dpid); } catch (RuntimeException e) { String msg = "Ignore invalid DPID: node=" + node.getNodeId() + ", dpid=" + dpid; LOG.warn(msg, e); } } return ofnode; }
return false; if (!Objects.equals(_datapathId, other.getDatapathId())) { return false;
private static DatapathId getOvsDataPathId(NodeId nodeId) { Object[] methodParams = {SfcOvsUtil.buildOvsdbBridgeIID(nodeId)}; SfcOvsDataStoreAPI readOvsdbBridge = new SfcOvsDataStoreAPI(SfcOvsDataStoreAPI.Method.READ_OVSDB_BRIDGE, methodParams); OvsdbBridgeAugmentation readBridge = (OvsdbBridgeAugmentation) SfcOvsUtil.submitCallable(readOvsdbBridge, OpendaylightSfc.getOpendaylightSfcObj().getExecutor()); if (readBridge == null) { return null; } return readBridge.getDatapathId(); }
Long dpid = getLongFromDpid(ovsdbBridgeAugmentation.getDatapathId().getValue()); if (nodeName.equals("openflow:" + String.valueOf(dpid))) { for (TerminationPoint tp : tpList) {
public OvsdbBridgeAugmentationBuilder(OvsdbBridgeAugmentation base) { this._autoAttach = base.getAutoAttach(); this._bridgeExternalIds = base.getBridgeExternalIds(); this._bridgeName = base.getBridgeName(); this._bridgeOpenflowNodeRef = base.getBridgeOpenflowNodeRef(); this._bridgeOtherConfigs = base.getBridgeOtherConfigs(); this._bridgeUuid = base.getBridgeUuid(); this._controllerEntry = base.getControllerEntry(); this._datapathId = base.getDatapathId(); this._datapathType = base.getDatapathType(); this._failMode = base.getFailMode(); this._flowNode = base.getFlowNode(); this._managedBy = base.getManagedBy(); this._protocolEntry = base.getProtocolEntry(); }