Skip to content
Snippets Groups Projects
path_traversal.go 385 B
Newer Older
  • Learn to ignore specific revisions
  • package main
    
    import (
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	"code.fbi.h-da.de/cocsn/gosdn/nucleus/util"
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	"code.fbi.h-da.de/cocsn/yang-models/generated/arista"
    
    	log "github.com/sirupsen/logrus"
    
    )
    
    func main() {
    
    	log.SetLevel(log.DebugLevel)
    	schema, _ := arista.Schema()
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	paths := util.NewPaths()
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	paths.ParseSchema(schema, "device")
    
    
    	for _, v := range paths {
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    		v.Print()
    
    	p := paths.StringBuilder()
    	log.Debug(p)
    }