Container for routing related YANG models.
Consider carefully when modifying this file. It serves primarily as a point for the actual models for the routing to attach to via an augment statement.
Copyright 2017-2020 Rubicon Communications, LLC. All rights reserved.
Example URL
Root container for routing models
netgate.route.RouteConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Root container for routing models
netgate.route.RouteConfig to be added to list
netgate-route:route-config | object (netgate.route.RouteConfig) |
Object created
Internal error
Object already exists
Example URL
Root container for routing models
netgate.route.RouteConfig to be added or updated
netgate-route:route-config-wrapper | object (netgate.route.RouteConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Root container for routing models
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.route.routeconfig.Dynamic
netgate.route.routeconfig.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config/dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.route.routeconfig.Dynamic
netgate.route.routeconfig.Dynamic to be added to list
dynamic | object (netgate.route.routeconfig.Dynamic) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.route.routeconfig.Dynamic
netgate.route.routeconfig.Dynamic to be added or updated
netgate-route:dynamic-wrapper | object (netgate.route.routeconfig.DynamicWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.route.routeconfig.Dynamic
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config/dynamic" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.route.routeconfig.Static
netgate.route.routeconfig.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config/static" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.route.routeconfig.Static
netgate.route.routeconfig.Static to be added to list
static | object (netgate.route.routeconfig.Static) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.route.routeconfig.Static
netgate.route.routeconfig.Static to be added or updated
netgate-route:static-wrapper | object (netgate.route.routeconfig.StaticWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.route.routeconfig.Static
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-config/static" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Root container for routing models
netgate.route.RouteState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-state" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.route.routestate.Dynamic
netgate.route.routestate.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-state/dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.route.routestate.Static
netgate.route.routestate.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route:route-state/static" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }