本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid.toString()
方法的一些代码示例,展示了Uuid.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Uuid.toString()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
类名称:Uuid
方法名:toString
暂无
代码示例来源:origin: org.opendaylight.netvirt/neutronvpn-impl
private List<String> generateNewRD(Uuid vpn) {
List<String> rd = null;
if (adminRDValue != null) {
Integer rdId = NeutronvpnUtils.getUniqueRDId(idManager, NeutronConstants.RD_IDPOOL_NAME, vpn.toString());
if (rdId != null) {
rd = new ArrayList<>(Arrays.asList(adminRDValue + ":" + rdId));
}
LOG.debug("Generated RD " + rd.get(0) + " for L3VPN " + vpn);
}
return rd;
}
代码示例来源:origin: org.opendaylight.netvirt/natservice-impl
@Override
protected void remove(InstanceIdentifier<Networks> identifier, Networks networks) {
if( identifier == null || networks == null || networks.getRouterIds().isEmpty() ) {
LOG.info( "ExternalNetworksChangeListener:remove:: returning without processing since networks/identifier is null" );
return;
}
for( Uuid routerId: networks.getRouterIds() ) {
String routerName = routerId.toString();
InstanceIdentifier<RouterToNaptSwitch> routerToNaptSwitchInstanceIdentifier =
getRouterToNaptSwitchInstanceIdentifier( routerName);
MDSALUtil.syncDelete( dataBroker, LogicalDatastoreType.OPERATIONAL, routerToNaptSwitchInstanceIdentifier );
LOG.debug( "ExternalNetworksChangeListener:delete:: successful deletion of data in napt-switches container" );
}
}
代码示例来源:origin: org.opendaylight.netvirt/neutronvpn-impl
@Override
protected void remove(InstanceIdentifier<Bgpvpn> identifier, Bgpvpn input) {
if (LOG.isTraceEnabled()) {
LOG.trace("Removing Bgpvpn : key: " + identifier + ", value=" + input);
}
if (isBgpvpnTypeL3(input.getType())) {
nvpnManager.removeL3Vpn(input.getUuid());
// Release RD Id in pool
NeutronvpnUtils.releaseRDId(idManager, NeutronConstants.RD_IDPOOL_NAME, input.getUuid().toString());
}
}
内容来源于网络,如有侵权,请联系作者删除!