1 package org.onap.pnfsimulator.netconfmonitor.netconf;
3 import com.tailf.jnc.JNCException;
4 import com.tailf.jnc.NetconfSession;
5 import java.io.IOException;
7 public class NetconfConfigurationReader {
9 private final NetconfSession session;
10 private final String netconfModelPath;
12 public NetconfConfigurationReader(NetconfSession session, String netconfModelPath) {
13 this.session = session;
14 this.netconfModelPath = netconfModelPath;
17 public String read() throws IOException, JNCException {
18 return session.getConfig(netconfModelPath).first().toXMLString();