Change-Id: I527de936aeb88d58de5efa7dbd8463c38034dd2e
Signed-off-by: Tomas Cere <tcere@cisco.com>
this.networkTopologyPath = InstanceIdentifier.builder(NetworkTopology.class).build();
this.topologyListPath = networkTopologyPath.child(Topology.class, new TopologyKey(new TopologyId(topologyId)));
+
+ // write an empty topology container at the start
+ final WriteTransaction wTx = txChain.newWriteOnlyTransaction();
+ createNetworkTopologyIfNotPresent(wTx);
+ commitTransaction(wTx, "init topology container", new NodeId("topology-netconf"));
}
@Override