summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
f7a7694)
We expose this as the instance identifier already and there are no users
anyway.
JIRA: NETCONF-913
Change-Id: I38ad921fb321014167d59fe1f2a7932fcdc06087
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
.child(Topology.class, new TopologyKey(new TopologyId(DEFAULT_TOPOLOGY_NAME)));
private final String name;
.child(Topology.class, new TopologyKey(new TopologyId(DEFAULT_TOPOLOGY_NAME)));
private final String name;
- private final NodeKey key;
private final YangInstanceIdentifier topologyPath;
private final KeyedInstanceIdentifier<Node, NodeKey> topologyBindingPath;
private InetSocketAddress address;
private final YangInstanceIdentifier topologyPath;
private final KeyedInstanceIdentifier<Node, NodeKey> topologyBindingPath;
private InetSocketAddress address;
private RemoteDeviceId(final String name) {
this.name = requireNonNull(name);
topologyPath = DEFAULT_TOPOLOGY_NODE.node(NodeIdentifierWithPredicates.of(Node.QNAME, NODE_ID_QNAME, name));
private RemoteDeviceId(final String name) {
this.name = requireNonNull(name);
topologyPath = DEFAULT_TOPOLOGY_NODE.node(NodeIdentifierWithPredicates.of(Node.QNAME, NODE_ID_QNAME, name));
- key = new NodeKey(new NodeId(name));
- topologyBindingPath = DEFAULT_TOPOLOGY_IID.child(Node.class, key);
+ topologyBindingPath = DEFAULT_TOPOLOGY_IID.child(Node.class, new NodeKey(new NodeId(name)));
}
public RemoteDeviceId(final String name, final InetSocketAddress address) {
}
public RemoteDeviceId(final String name, final InetSocketAddress address) {
- public NodeKey getBindingKey() {
- return key;
- }
-
- public InstanceIdentifier<Node> getTopologyBindingPath() {
+ public KeyedInstanceIdentifier<Node, NodeKey> getTopologyBindingPath() {
return topologyBindingPath;
}
return topologyBindingPath;
}