netconf YANG model 개발하기
in blog
NETCONF-YANG 개발하기
~ $ git clone https://github.com/CESNET/libnetconf.git
~ $ git clone https://github.com/CESNET/libnetconf2.git
~ $ sudo apt-get install libtool-bin libssh-dev
~ $ jekyll new my-awesome-site
~ $ cd my-awesome-site
~/my-awesome-site $ bundle exec jekyll serve
# => 브라우저로 http://127.0.0.1:4000 에 접속
libnetconf2 and Netopeer2-cli
https://github.com/CESNET/Netopeer2/issues/181
cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/
cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/var/www/html/apps/netconf/install -DENABLE_TLS=OFF -DENABLE_SSH=OFF
cmake .. -DENABLE_TLS=OFF -DENABLE_SSH=ON
cmake .. -DENABLE_TLS=ON -DENABLE_SSH=OFF
/usr/lib/x86_64-linux-gnu/libcrypto.so
/usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
/usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a
libssl-dev
libtoolize –force
http://www.sysrepo.org/
$ wget "https://devnet-filemedia-download.s3.amazonaws.com/dac10cd0-3fbb-48c3-aa0b-3f2cc06882e9/confd-basic-6.6.darwin.x86_64.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIJI4TRGQ63CTXJEQ%2F20190219%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190219T005519Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=3e1056759229187ed16bec4993e31032dbd1a7e2ccdc8d7f09a26eade5db7602" -O confd-basic-6.6.darwin.x86_64.zip
$ wget http://bit.ly/2SLCJ9o -O confd-basic-6.6.darwin.x86_64.zip
$ unzip confd-basic-6.6.darwin.x86_64.zip
Archive: confd-basic-6.6.darwin.x86_64.zip
creating: confd-basic-6.6.darwin.x86_64/
inflating: confd-basic-6.6.darwin.x86_64/confd-basic-6.6.darwin.x86_64.installer.bin
inflating: confd-basic-6.6.darwin.x86_64/confd-basic-6.6.doc.tar.gz
inflating: confd-basic-6.6.darwin.x86_64/confd-basic-6.6.examples.tar.gz
inflating: confd-basic-6.6.darwin.x86_64/confd-basic-6.6.libconfd.tar.gz
inflating: confd-basic-6.6.darwin.x86_64/ConfD_Basic_License_Agreement_1.1.pdf
inflating: confd-basic-6.6.darwin.x86_64/Tail-f_leaf-list_changes Rev B 2015-05-29.pdf
$ cd confd-basic-6.6.darwin.x86_64
$ ./confd-basic-6.6.darwin.x86_64.installer.bin ./confd
INFO Unpacked confd-basic-6.6 in /var/www/html/apps/confd-basic-6.6.darwin.x86_64/./confd
INFO Found and unpacked corresponding DOCUMENTATION_PACKAGE
INFO Found and unpacked corresponding EXAMPLE_PACKAGE
INFO Generating default SSH hostkey (this may take some time)
INFO SSH hostkey generated
INFO Environment set-up generated in /var/www/html/apps/confd-basic-6.6.darwin.x86_64/./confd/confdrc
INFO ConfD installation script finished
$ cd confd/bin
$ ./confd
http://www.seguesoft.com/index.php/how-to-set-up-netopeer-server-to-use-with-netconfc
https://docs.opendaylight.org/en/stable-oxygen/user-guide/netconf-user-guide.html
https://askubuntu.com/questions/951581/how-to-enable-ssh-root-access-ubuntu-16-04
$ git clone https://github.com/mbj4668/pyang
$ cd pyang
https://github.com/YangModels/yang
connect –host 10.64.156.119 –port 6001 –login root
connect –host 192.168.1.1 –port 830 –login root
pip install netconf-console
$ pip install netconf-console