This YANG module provides a data model for host IP routes.
Copyright 2023 Rubicon Communications, LLC.
Example URL
Host system IP route configuration.
netgate.host.route.HostRouteConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-route:host-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
Host system IP route configuration.
netgate.host.route.HostRouteConfig to be added to list
netgate-host-route:host-route-config | object (netgate.host.route.HostRouteConfig) |
Object created
Internal error
Object already exists
Example URL
Host system IP route configuration.
netgate.host.route.HostRouteConfig to be added or updated
netgate-host-route:host-route-config-wrapper | object (netgate.host.route.HostRouteConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Host system IP route configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-route:host-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
Host system static routes.
netgate.host.route.hostrouteconfig.RouteTables
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-route:host-route-config/route-tables" 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
Host system static routes.
netgate.host.route.hostrouteconfig.RouteTables to be added to list
route-tables | object (netgate.host.route.hostrouteconfig.RouteTables) |
Object created
Internal error
Object already exists
Example URL
Host system static routes.
netgate.host.route.hostrouteconfig.RouteTables to be added or updated
netgate-host-route:route-tables-wrapper | object (netgate.host.route.hostrouteconfig.RouteTablesWrapper) |
Object created
Object modified
Internal error
Example URL
Host system static routes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-route:host-route-config/route-tables" 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
Currently, one host route table named 'default' is supported.
netgate.host.route.hostrouteconfig.routetables.RouteTable to be added to list
route-table | object (netgate.host.route.hostrouteconfig.routetables.RouteTable) |
Object created
Internal error
Object already exists