go-ygot-generator-generator

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 4 Imported by: 0

README

go-ygot-generator-generator

A tool used to configure the ygot generator via a simple yaml file.

Usage

  1. Create a test.yaml where you specify your ygot configuration.
---
generator_options:
  - option: output_file
    value: ./yang.go
  - option: include_model_data
    value: true
  - option: generate_fakeroot
    value: true
  - option: fakeroot_name
    value: device
  - option: exclude_modules
    value: ietf-interfaces
models:
  - ../../../models/openconfig/release/models/system/openconfig-system.yang
  - ../../../models/openconfig/release/models/interfaces/openconfig-interfaces.yang
  - ../../../models/openconfig/release/models/interfaces/openconfig-if-ethernet.yang
  - ../../../models/openconfig/release/models/interfaces/openconfig-if-ip.yang
path_to_generator: ../../../build-tools/generator
path_to_models: ../../../models/openconfig
  1. Let go-ygot-generator-generator generate to go file that can be used with go generate.
	go-yang-generator-generator test.yaml test.go
	go generate test.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL