private void setNewOtherConfigs(OvsdbNodeAugmentationBuilder ovsdbNodeBuilder,
Map<String, String> otherConfigs) {
Set<String> otherConfigKeys = otherConfigs.keySet();
- List<OpenvswitchOtherConfigs> otherConfigsList = new ArrayList<OpenvswitchOtherConfigs>();
+ List<OpenvswitchOtherConfigs> otherConfigsList = new ArrayList<>();
String otherConfigValue;
for (String otherConfigKey : otherConfigKeys) {
otherConfigValue = otherConfigs.get(otherConfigKey);
private void setNewExternalIds(OvsdbNodeAugmentationBuilder ovsdbNodeBuilder,
Map<String, String> externalIds) {
Set<String> externalIdKeys = externalIds.keySet();
- List<OpenvswitchExternalIds> externalIdsList = new ArrayList<OpenvswitchExternalIds>();
+ List<OpenvswitchExternalIds> externalIdsList = new ArrayList<>();
String externalIdValue;
for (String externalIdKey : externalIdKeys) {
externalIdValue = externalIds.get(externalIdKey);
OpenVSwitch openVSwitch) {
try {
Set<String> iftypes = openVSwitch.getIfaceTypesColumn().getData();
- List<InterfaceTypeEntry> ifEntryList = new ArrayList<InterfaceTypeEntry>();
+ List<InterfaceTypeEntry> ifEntryList = new ArrayList<>();
for (String ifType : iftypes) {
if (SouthboundMapper.createInterfaceType(ifType) != null) {
InterfaceTypeEntry ifEntry = new InterfaceTypeEntryBuilder()
}
ovsdbNodeBuilder.setInterfaceTypeEntry(ifEntryList);
} catch (SchemaVersionMismatchException e) {
- LOG.debug("Iface types not supported by this version of ovsdb",e);;
+ LOG.debug("Iface types not supported by this version of ovsdb",e);
}
}
try {
Set<String> dptypes = openVSwitch.getDatapathTypesColumn()
.getData();
- List<DatapathTypeEntry> dpEntryList = new ArrayList<DatapathTypeEntry>();
+ List<DatapathTypeEntry> dpEntryList = new ArrayList<>();
for (String dpType : dptypes) {
if (SouthboundMapper.createDatapathType(dpType) != null) {
DatapathTypeEntry dpEntry = new DatapathTypeEntryBuilder()
}
private NodeId getNodeId(OpenVSwitch ovs) {
- NodeKey nodeKey = getInstanceIdentifier(ovs).firstKeyOf(Node.class, NodeKey.class);
+ NodeKey nodeKey = getInstanceIdentifier(ovs).firstKeyOf(Node.class);
return nodeKey.getNodeId();
}
}