Git Product home page Git Product logo

yang-extractor's Introduction

yang-extractor.pl

Extract YANG modules from RFC text.

This script will extract YANG modules from RFC text files that are marked up like this:

<CODE BEGINS> file "filename.yang"
...
<CODE ENDS>

Usage

host% ./yang-extractor.pl
Usage:
  ./yang-extractor.pl <rfc-file>

Grab your favourite RFC file from the Interwebs and extract the YANG modules:

host% curl -O https://tools.ietf.org/id/draft-ietf-i2rs-yang-l3-topology-01.txt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 56535  100 56535    0     0  36363      0  0:00:01  0:00:01 --:--:-- 36356
host% ./yang-extractor.pl draft-ietf-i2rs-yang-l3-topology-01.txt
Saving 443 lines into [email protected]
Saving 327 lines into [email protected]
Saving 273 lines into [email protected]
host%

Prerequisite

The yang-extractor.pl script is written in Perl 6 which is available for most platforms.

MacOS

The easiest way to install Perl 6 in MacOS is by using Homebrew.

brew install rakudo-star

Windows

Windows users can install the most recent 64 bit or 32 bit MSI of Rakudo Star from:

http://rakudo.org/downloads/star/

Linux

There are instructions for building from source on your favourite Linux distribution:

http://rakudo.org/how-to-get-rakudo/

Related Projects

There is a tool called xym that is recommended by the IETF:

https://github.com/xym-tool/xym

yang-extractor's People

Watchers

Donald Hunter avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.