import static org.opendaylight.yangtools.yang.common.QName.create;
import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.MoreExecutors;
private static final QName STAT11_QNAME = create(Stats.QNAME, "updates-treated-as-withdraw").intern();
private static final QName STAT13_QNAME = create(Stats.QNAME, "duplicate-updates").intern();
+ private static final NodeIdentifierWithPredicates AFI_ITEM = NodeIdentifierWithPredicates.of(AF_QNAME,
+ ImmutableMap.of(
+ TablesUtil.BMP_AFI_QNAME.bindTo(AF_QNAME.getModule()).intern(), Ipv4AddressFamily.QNAME,
+ TablesUtil.BMP_SAFI_QNAME.bindTo(AF_QNAME.getModule()).intern(), UnicastSubsequentAddressFamily.QNAME));
+
private static final TablesKey DEFAULT_TABLE =
new TablesKey(Ipv4AddressFamily.VALUE, UnicastSubsequentAddressFamily.VALUE);
.withChild(ImmutableNodes.mapNodeBuilder(AF_QNAME).withChild(Builders.mapEntryBuilder()
.withChild(ImmutableNodes.leafNode(COUNT_QNAME,
tlvs.getPerAfiSafiAdjRibInTlv().getCount().getValue()))
- .withNodeIdentifier(TablesUtil.toYangTablesKey(AF_QNAME,
- Ipv4AddressFamily.VALUE, UnicastSubsequentAddressFamily.VALUE))
+ .withNodeIdentifier(AFI_ITEM)
.build()).build()).build());
}
if (tlvs.getPerAfiSafiLocRibTlv() != null) {
.withChild(Builders.mapEntryBuilder()
.withChild(ImmutableNodes.leafNode(COUNT_QNAME,
tlvs.getPerAfiSafiLocRibTlv().getCount().getValue()))
- .withNodeIdentifier(TablesUtil.toYangTablesKey(AF_QNAME,
- Ipv4AddressFamily.VALUE, UnicastSubsequentAddressFamily.VALUE))
+ .withNodeIdentifier(AFI_ITEM)
.build()).build()).build());
}
if (tlvs.getUpdatesTreatedAsWithdrawTlv() != null) {