This YANG module provides a Netgate-defined data-model for Route Tables.
Copyright 2017-2020 Rubicon Communications, LLC.
Example URL
Route Table define a set of static IPv4 and IPv6 routes.
netgate.route.table.RouteTableConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-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
Route Table define a set of static IPv4 and IPv6 routes.
netgate.route.table.RouteTableConfig to be added to list
netgate-route-table:route-table-config | object (netgate.route.table.RouteTableConfig) |
Object created
Internal error
Object already exists
Example URL
Route Table define a set of static IPv4 and IPv6 routes.
netgate.route.table.RouteTableConfig to be added or updated
netgate-route-table:route-table-config-wrapper | object (netgate.route.table.RouteTableConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Route Table define a set of static IPv4 and IPv6 routes.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-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
Static routes.
netgate.route.table.routetableconfig.StaticRoutes
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-config/static-routes" 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
Static routes.
netgate.route.table.routetableconfig.StaticRoutes to be added to list
static-routes | object (netgate.route.table.routetableconfig.StaticRoutes) |
Object created
Internal error
Object already exists
Example URL
Static routes.
netgate.route.table.routetableconfig.StaticRoutes to be added or updated
netgate-route-table:static-routes-wrapper | object (netgate.route.table.routetableconfig.StaticRoutesWrapper) |
Object created
Object modified
Internal error