Skip to content

Instantly share code, notes, and snippets.

View rwestphal's full-sized avatar

Renato Westphal rwestphal

View GitHub Profile
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
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"
#!/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)
{
"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']",
$ cat /tmp/ietf-rip.json
{
"ietf-interfaces:interfaces": {
"interface": [
{
"description": "Engineering",
"name": "eth0"
}
]
},
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 {
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
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
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 {
# +---------+
# | |
# | RT1 |
# | 1.1.1.1 |-lo1 (2001:db8:1000::1/128)
# | |
# +---------+
# |rt1-eth0 (.1)
# |
# |10.0.1.0/24
# |2001:DB8:1::/64