This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rt2-ripd# show yang operational-data /frr-ripd:ripd | |
{ | |
"frr-ripd:ripd": { | |
"state": { | |
"neighbors": { | |
"neighbor": [ | |
{ | |
"address": "10.0.1.1", | |
"bad-packets-rcvd": 0, | |
"bad-routes-rcvd": 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bgpd aborted: vtysh -c "clear vrf NAME" | |
bgpd aborted: vtysh -c "clear vrf NAME all" | |
bgpd aborted: vtysh -c "clear vrf NAME prefix 1.1.1.1/32" | |
bgpd aborted: vtysh -c "clear vrf NAME prefix 2001:db8::1/128" | |
bgpd aborted: vtysh -c "configure terminal" -c "access-list 199 deny ip 1.1.1.1 1.1.1.1 any" | |
bgpd aborted: vtysh -c "configure terminal" -c "access-list 2699 deny ip any 1.1.1.1 1.1.1.1" | |
bgpd aborted: vtysh -c "configure terminal" -c "bfd" -c "peer 1.1.1.1 multihop" | |
bgpd aborted: vtysh -c "configure terminal" -c "bfd" -c "peer 1.1.1.1 multihop vrf NAME" | |
bgpd aborted: vtysh -c "configure terminal" -c "bfd" -c "peer 1.1.1.1 vrf NAME multihop" | |
bgpd aborted: vtysh -c "configure terminal" -c "route-map RMAP permit 1" -c "no match ipv6 next-hop type" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Create configuration for model frr-ripd. | |
usage: ydk_ripd_test_netconf.py [-h] [-v] device | |
positional arguments: | |
device NETCONF device (ssh://user:password@host:port) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"frr-module-translator:frr-module-translator": { | |
"family": "ietf", | |
"module": [ | |
{ | |
"name": "ietf-interfaces@2018-01-09", | |
"deviations": "frr-deviations-ietf-interfaces", | |
"mappings": [ | |
{ | |
"custom": "/ietf-interfaces:interfaces/interface[name='KEY1']", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /tmp/ietf-rip.json | |
{ | |
"ietf-interfaces:interfaces": { | |
"interface": [ | |
{ | |
"description": "Engineering", | |
"name": "eth0" | |
} | |
] | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module frr-deviations-ietf-ip { | |
yang-version 1.1; | |
namespace "http://frrouting.org/yang/frr-deviations-ietf-ip"; | |
prefix frr-deviations-ietf-ip; | |
import ietf-ip { | |
prefix ietf-ip; | |
} | |
import ietf-interfaces { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module frr-deviations-ietf-routing { | |
yang-version 1.1; | |
namespace "http://frrouting.org/yang/frr-deviations-ietf-routing"; | |
prefix frr-deviations-ietf-routing; | |
import ietf-routing { | |
prefix ietf-routing; | |
} | |
organization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module frr-deviations-ietf-interfaces { | |
yang-version 1.1; | |
namespace "http://frrouting.org/yang/frr-deviations-ietf-interfaces"; | |
prefix frr-deviations-ietf-interfaces; | |
import ietf-interfaces { | |
prefix ietf-interfaces; | |
} | |
organization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module frr-deviations-ietf-rip { | |
yang-version 1.1; | |
namespace "http://frrouting.org/yang/frr-deviations-ietf-rip"; | |
prefix frr-deviations-ietf-rip; | |
import ietf-routing { | |
prefix ietf-routing; | |
} | |
import ietf-rip { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# +---------+ | |
# | | | |
# | RT1 | | |
# | 1.1.1.1 |-lo1 (2001:db8:1000::1/128) | |
# | | | |
# +---------+ | |
# |rt1-eth0 (.1) | |
# | | |
# |10.0.1.0/24 | |
# |2001:DB8:1::/64 |