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-2019 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
dynamic | object (netgate.route.routeconfig.Dynamic) |
static | object (netgate.route.routeconfig.Static) |
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 | object (netgate.route.RouteConfig) |
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/netgate-route: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
route-maps | object (netgate.frr.routestate.dynamic.RouteMaps) |
prefix-lists | object (netgate.frr.routestate.dynamic.PrefixLists) |
bgp | object (netgate.frr.routestate.dynamic.Bgp) |
manager | object (netgate.frr.routestate.dynamic.Manager) |
access-lists | object (netgate.frr.routestate.dynamic.AccessLists) |
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 | object (netgate.route.routeconfig.Dynamic) |
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/netgate-route: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/netgate-route: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
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 | object (netgate.route.routeconfig.Static) |
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/netgate-route: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/netgate-route: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/netgate-route: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)) }