Skip to content
Snippets Groups Projects
main.go 551 B
Newer Older
  • Learn to ignore specific revisions
  • package main
    
    import (
    
    Martin Stiemerling's avatar
    x  
    Martin Stiemerling committed
    	"gosdn/nucleus"
    
    )
    
    // Generate the code out of the yang modules
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    //go:generate go run $GOPATH/src/github.com/openconfig/ygot/generator/generator.go -path=yang -output_file=yang-processor/gosdnyang.go.go -package_name=gosdnyang -generate_fakeroot -fakeroot_name=device -compress_paths=true -shorten_enum_leaf_names -exclude_modules=ietf-interfaces yang/openconfig-interfaces.yang yang/openconfig-if-ip.yang
    
    
    func main() {
    
    	// hand off to cmd for further processing
    
    	nucleus.Execute()
    
    
    	// nothing to see here, please move on!
    }