@Test public void testConvertNeutronIDToKey() { String uuidResult = BaseHandler.convertNeutronIDToKey(uuid); String uuidExpected = "ce044452f22eea4a3ecd1cde80cf996"; String tenantResult = BaseHandler.convertNeutronIDToKey(tenantId); String tenantExpected = "8d62bfa112fb247aa20edc74235c1ce"; String neutronResult = BaseHandler.convertNeutronIDToKey(neutronId); assertEquals(uuidExpected, uuidResult); assertEquals(tenantExpected, tenantResult); assertEquals(neutronId, neutronResult); }
protected static final String convertNeutronIDToKey(String neutronID) { String key = null; if (neutronID == null) { return key; } logger.trace(" neutronID - {}, length - {} ", neutronID, neutronID.length()); if (!isValidNeutronID(neutronID)) { return key; } if (neutronID.length() == UUID_LEN) { key = convertUUIDToKey(neutronID); } else if (neutronID.length() == KEYSTONE_ID_LEN) { key = convertKeystoneIDToKey(neutronID); } else { key = neutronID; } return key; }
BaseHandler { protected static final String convertNeutronIDToKey(String neutronID) { String key = null; if (neutronID == null) { return key; } logger.trace(" neutronID - {}, length - {} ", neutronID, neutronID.length()); if (!isValidNeutronID(neutronID)) { return key; } if (neutronID.length() == UUID_LEN) { key = convertUUIDToKey(neutronID); } else if (neutronID.length() == KEYSTONE_ID_LEN) { key = convertKeystoneIDToKey(neutronID); } else { key = neutronID; } return key; } }
BaseHandler { protected static final String convertNeutronIDToKey(String neutronID) { String key = null; if (neutronID == null) { return key; } logger.trace(" neutronID - {}, length - {} ", neutronID, neutronID.length()); if (!isValidNeutronID(neutronID)) { return key; } if (neutronID.length() == UUID_LEN) { key = convertUUIDToKey(neutronID); } else if (neutronID.length() == KEYSTONE_ID_LEN) { key = convertKeystoneIDToKey(neutronID); } else { key = neutronID; } return key; }  }
BaseHandler { protected static final String convertNeutronIDToKey(String neutronID) { String key = null; if (neutronID == null) { return key; } logger.trace(" neutronID - {}, length - {} ", neutronID, neutronID.length()); if (!isValidNeutronID(neutronID)) { return key; } if (neutronID.length() == UUID_LEN) { key = convertUUIDToKey(neutronID); } else if (neutronID.length() == KEYSTONE_ID_LEN) { key = convertKeystoneIDToKey(neutronID); } else { key = neutronID; } return key; }  IContainerManager getContainerManager(); void unsetContainerManager(IContainerManager s); void setContainerManager(IContainerManager s); IForwardingRulesManager getForwardingRulesManager(); void unsetForwardingRulesManager(IForwardingRulesManager s); void setForwardingRulesManager(IForwardingRulesManager s); OVSDBConfigService getOVSDBConfigService(); void unsetOVSDBConfigService(OVSDBConfigService s); void setOVSDBConfigService(OVSDBConfigService s); IConnectionServiceInternal getConnectionService(); void unsetConnectionService(IConnectionServiceInternal s); void setConnectionService(IConnectionServiceInternal s); INeutronPortCRUD getNeutronPortCRUD(); void unsetNeutronPortCRUD(INeutronPortCRUD s); void setNeutronPortCRUD(INeutronPortCRUD s); INeutronSubnetCRUD getNeutronSubnetCRUD(); void unsetNeutronSubnetCRUD(INeutronSubnetCRUD s); void setNeutronSubnetCRUD(INeutronSubnetCRUD s); INeutronNetworkCRUD getNeutronNetworkCRUD(); void unsetNeutronNetworkCRUD(INeutronNetworkCRUD s); void setNeutronNetworkCRUD(INeutronNetworkCRUD s); }
BaseHandler { protected static final String convertNeutronIDToKey(String neutronID) { String key = null; if (neutronID == null) { return key; } logger.trace(" neutronID - {}, length - {} ", neutronID, neutronID.length()); if (!isValidNeutronID(neutronID)) { return key; } if (neutronID.length() == UUID_LEN) { key = convertUUIDToKey(neutronID); } else if (neutronID.length() == KEYSTONE_ID_LEN) { key = convertKeystoneIDToKey(neutronID); } else { key = neutronID; } return key; }  IContainerManager getContainerManager(); void unsetContainerManager(IContainerManager s); void setContainerManager(IContainerManager s); IForwardingRulesManager getForwardingRulesManager(); void unsetForwardingRulesManager(IForwardingRulesManager s); void setForwardingRulesManager(IForwardingRulesManager s); OVSDBConfigService getOVSDBConfigService(); void unsetOVSDBConfigService(OVSDBConfigService s); void setOVSDBConfigService(OVSDBConfigService s); IConnectionServiceInternal getConnectionService(); void unsetConnectionService(IConnectionServiceInternal s); void setConnectionService(IConnectionServiceInternal s); INeutronPortCRUD getNeutronPortCRUD(); void unsetNeutronPortCRUD(INeutronPortCRUD s); void setNeutronPortCRUD(INeutronPortCRUD s); INeutronSubnetCRUD getNeutronSubnetCRUD(); void unsetNeutronSubnetCRUD(INeutronSubnetCRUD s); void setNeutronSubnetCRUD(INeutronSubnetCRUD s); INeutronNetworkCRUD getNeutronNetworkCRUD(); void unsetNeutronNetworkCRUD(INeutronNetworkCRUD s); void setNeutronNetworkCRUD(INeutronNetworkCRUD s);  }