X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=hwvtepsouthbound%2Fhwvtepsouthbound-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Fhwvtepsouthbound%2FHwvtepSouthboundUtil.java;h=84388736089e1193ae85d7280f2764f469bbd4a6;hb=5b0b0ba45257b06d9269c2cb12c705ff7157ee12;hp=8592e4286d1c76e01789d4318a7026aae5387f8b;hpb=bdfed1e23ae795a74910b94f913f44bb2672da45;p=ovsdb.git diff --git a/hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java b/hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java index 8592e4286..843887360 100644 --- a/hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java +++ b/hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java @@ -102,25 +102,7 @@ public class HwvtepSouthboundUtil { return result; } - public static Optional getManagingNode(DataBroker db, - HwvtepLogicalSwitchAttributes lNode) { - Preconditions.checkNotNull(lNode); - Optional result = null; - // TODO: Add managed-by to hwvtep-logical-switch-attributes in - // hwvtep.yang - /* - * HwvtepGlobalRef ref = lNode.getManagedBy(); if (ref != null && - * ref.getValue() != null) { result = getManagingNode(db, ref); } else { - * LOG.warn( - * "Cannot find client for LogicalSwitch without a specified ManagedBy {}" - * , pNode); return Optional.absent(); } if(!result.isPresent()) { - * LOG.warn("Failed to find managing node for PhysicalSwitch {}", - * pNode); } return result; - */ - return Optional.absent(); // TODO: Delete this once yang is updated - } - - private static Optional getManagingNode(DataBroker db, HwvtepGlobalRef ref) { + public static Optional getManagingNode(DataBroker db, HwvtepGlobalRef ref) { try { ReadOnlyTransaction transaction = db.newReadOnlyTransaction(); @SuppressWarnings("unchecked")