The following article explains how to connect yangcli-pro with ODL over the NETCONF protocol.

The netconfd-pro 21.10-4 release and ODL karaf-0.8.4-Oxygen were used for the example.


The following list records the steps necessary to use yangcli-pro with OpenDaylight on Ubuntu LTS 20.04

  1. Start OpenDaylight
  2. Install ODL features
  3. Connect yangcli-pro



1. Start OpenDaylight


You can start OpenDaylight by running the following command:

ubuntu@ip-172-31-92-223:~/karaf-0.8.4$ ./bin/karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]

Karaf started in 0s. Bundle stats: 13 active, 13 total

    ________                       ________                .__  .__       .__     __
    \_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_
     /   |   \\____ \_/ __ \ /    \ |    |  \\__  \<   |  ||  | |  |/ ___\|  |  \   __\
    /    |    \  |_> >  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  >   Y  \  |
    \_______  /   __/ \___  >___|  /_______  (____  / ____||____/__\___  /|___|  /__|
            \/|__|        \/     \/        \/     \/\/            /_____/      \/


Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.

opendaylight-user@root>



2. Install ODL features


The following ODL features must be installed to support netconfd-pro connection with ODL:

  • odl-netconf-connector-all
  • odl-netconf-topology
  • odl-netconf-clustered-topology


The following ODL features must be installed to support yangcli-pro connection with ODL:

  • odl-netconf-console


In order to install features, use the following commands:

opendaylight-user@root>feature:install odl-netconf-connector-all
opendaylight-user@root>feature:install odl-netconf-topology
opendaylight-user@root>feature:install odl-netconf-clustered-topology
opendaylight-user@root>feature:install odl-netconf-console

3. Connect yangcli-pro



In order to connect to your ODL server with yangcli-pro use the following command:


user@yw-user:~$ yangcli-pro server=localhost user=admin password=admin ncport=2830