Giter Club home page Giter Club logo

openconfigd's Introduction

openconfigd

openconfigd is software which manages OpenConfig common data models for networking. It handles networking protocol configuration of switch, router, DNS, DHCP, NAT and Firewall.

openconfigd reads YANG model definition then generate configuration schema from it.

Install

Below command install openconfigd and cli_command to $GOPATH/bin.

$ go get github.com/coreswitch/openconfigd/openconfigd
$ go get github.com/coreswitch/openconfigd/cli_command

CLI command build and set up.

$ cd $GOPATH/src/github.com/coreswitch/openconfigd/cli
$ ./configure
$ make
$ sudo make install

will install cli command to /usr/local/bin.

CLI completion file another cli file exists under bash_completion.d. On Ubuntu, this file should be installed under /etc/bach_completion.d

$ cd $GOPATH/src/github.com/coreswitch/openconfigd/bash_completion.d
$ sudo cp cli /etc/bash_completion.d/

Quick Start

Invoke openconfigd, then start cli. "show version" display version information.

$ openconfigd &
$ cli
ubuntu>
ubuntu> show version
Developer Preview version of openconfigd
ubuntu>

Options

openconfigd takes YANG module names as arguments. When no YANG module is specified, default coreswitch.yang is used. '.yang' suffix is optional. Use can specify multiple YANG file. So

$ openconfigd lagopus ietf-ip

will load both lagopus.yang and ietf-ip.yang modules.

There are several other options.

  • -c, --config-file= active config file name (default: coreswitch.conf)
  • -p, --config-dir= config file directory (default: /usr/local/etc)
  • -y, --yang-paths= colon separated YANG load path directories
  • -2, --two-phase enable two phase commit
  • -z, --zero-config do not save or load config other than openconfigd.conf
  • -h, --help Show this help message

-c option specify active config file name. -p option specify config file save directory. When full path is specified to -c option's base directory overrides the -p option config file directory.

-y option specify YANG file load path. Use can specify multiple YANG load path with colon separated list.

-2 option enables two phase commit. It send validate start and end message to protocol modules.

When -z option is specified, only openconfigd.conf file is loaded on start up. Configuraion is never saved to the config file.

$ openconfigd -y /usr/shared/yang:/opt/yang

will search both /usr/shared/yang and /opt/yang directory. Default YANG load path $GOPATH/src/github.com/coreswitch/openconfigd/yang is automatically added.

openconfigd scripting

openconfigd support CLI scripting. All operational and configuration mode commands can run from script.

Here is an example:

#! /bin/bash

source /etc/bash_completion.d/cli

show version

openconfigd's People

Contributors

ebiken avatar hariguchi avatar hiroyuki-sato avatar kishiguro avatar m-asama avatar

Watchers

 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.