Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
1_send_yaml.py
README.md more updates to README in yaml-101 Mar 2, 2017
bgp.tree yaml converter done Mar 1, 2017
bgp.yaml
defaults.py yaml converter done Mar 1, 2017
gigabiteth.tree yaml converter done Mar 1, 2017
helpers.py yaml converter done Mar 1, 2017
ietf-ip-interface.json
interface.yaml
loopback.tree yaml converter done Mar 1, 2017
ospf.tree yaml converter done Mar 1, 2017
ospf.yaml
ydk_yaml.py yaml converter done Mar 1, 2017

README.md

Example workflow of configuring NETCONF devices using YAML configuration files

1. Follow steps [5 - 6] from this guide to install YDK, it's core libraries and Cisco Native YANG binding

2. Examine the structure of the OSPF YANG model

pyang -f tree --tree-path "/native/router/ospf" ~/ydk-gen/gen-api/.cache/models/cisco_ios_xe@0.1.0/ned.yang -o ospf.tree

3. Create a YAML file following the structure of the OSPF YANG model

cat ospf.yaml

4. Update device's OSPF configuration

./1_send_yaml.py ospf ospf.yaml

5. Repeat steps [2 - 4] for other configuration elements (e.g. interface and BGP)

./1_send_yaml.py interface_native interface.yaml

./1_send_yaml.py bgp bgp.yaml

All defaults are setup in defaults.py configuration file

You can’t perform that action at this time.