Public | Automated Build

Last pushed: 3 days ago
Short Description
Docker image with Sysrepo & Netopeer2 setup.
Full Description

Docker image with Sysrepo & Netopeer2 setup

Run sysrepod and netopeer2-server in the container:

docker run -it --name sysrepo -p 830:830 --rm sysrepo/sysrepo-netopeer2:latest

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&amp;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

You can also connect to the NETCONF server via testconf:

docker run -it --link sysrepo --rm sysrepo/testconf:latest

asciinema demo:

Docker Pull Command
Owner
sysrepo
Source Repository