This file contains 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 | | |
# | | | |
# +---------+ | |
# |eth-sw1 | |
# | | |
# | |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <err.h> | |
#include <libyang/libyang.h> | |
//#define YANG_SEARCH_PATH "/usr/local/share/yang/" | |
#define YANG_SEARCH_PATH "/mnt/renato/git/rust/yang2-rs/assets/yang/" | |
int main(int argc, char **argv) |
This file contains 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
# Dynamic topology | |
--- | |
autogen: | |
layout: | |
type: ring | |
size: 10 | |
ipv4: |
This file contains 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
# Dynamic topology | |
--- | |
autogen: | |
layout: | |
type: grid | |
width: 5 | |
height: 5 |
This file contains 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
# | |
# +---------+ | |
# | | | |
# | RT17 | | |
# +---------+ +----------+ | |
# | | | | | |
# | +---------+ | | |
# | | | |
# | | | |
# +-----+---+ +----+----+ |
This file contains 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
import pprint | |
import grpc | |
import frr_northbound_pb2 as frr_nb | |
import frr_northbound_pb2_grpc as frr_nb_grpc | |
from libyang import Context | |
from libyang import LibyangError | |
from libyang.data import DNode |
This file contains 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 ruby | |
this_dir = File.expand_path(File.dirname(__FILE__)) | |
lib_dir = File.join(this_dir, "ruby") | |
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir) | |
require "grpc" | |
require "frr-northbound_services_pb" | |
begin |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <err.h> | |
#include <assert.h> | |
#include <arpa/inet.h> | |
#include <stdbool.h> | |
#include <libyang/libyang.h> |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <err.h> | |
#include <libyang/libyang.h> | |
static struct ly_ctx *ly_ctx; | |
static struct lyd_node *running, *candidate; |
This file contains 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
# +-------+ +-------+ +-------+ | |
# | | | | | | | |
# | HOST1 | | HOST2 | | HOST3 | | |
# | | | | | | | |
# +---+---+ +---+---+ +---+---+ | |
# | | | | |
# |fd00:10:1::/64 | | | |
# +-----+ +------+ fd00:20:1::/64| | |
# | |fd00:10:2::/64 | | |
# | | | |
NewerOlder