Run sysrepod
and netopeer2-server
in the container:
docker run -it --name sysrepo -p 830:830 --rm sysrepo/sysrepo-netopeer2:latest
On the devel branch the default port is 830.
docker run -it --name sysrepo -p 830:830 --rm sysrepo/sysrepo-netopeer2:latest_devel
Connect to the NETCONF server via SSH to port 830
(username / password is netconf
):
ssh netconf@localhost -p 830 -s netconf
In order to get running config via the SSH session use the following snippet:
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:neconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&revision=2010-10-04</capability>
</capabilities>
</hello>
]]>]]>
#139
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running />
</source>
</get-config>
</rpc>
##
To access sysrepoctl
or sysrepocfg
exec bash in the container:
docker exec -it sysrepo /bin/bash
sysrepoctl -l
sysrepocfg turing-machine