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
Example URL
Static 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/static-routes" 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
Route table entries are indexed by their name. Table names are unique across all address families.
netgate.route.table.routetableconfig.staticroutes.RouteTable to be added to list
route-table | object (netgate.route.table.routetableconfig.staticroutes.RouteTable) |
Object created
Internal error
Object already exists
Example URL
Route table entries are indexed by their name. Table names are unique across all address families.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.RouteTable
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/route-table=%7Bname%7D" 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 entries are indexed by their name. Table names are unique across all address families.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.RouteTable to be added or updated
netgate-route-table:route-table-wrapper | object (netgate.route.table.routetableconfig.staticroutes.RouteTableWrapper) |
Object created
Object modified
Internal error
Example URL
Route table entries are indexed by their name. Table names are unique across all address families.
name required | string Id of route-table |
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/static-routes/route-table=%7Bname%7D" 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
List of IPv4 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes
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/route-table=%7Bname%7D/ipv4-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
List of IPv4 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes to be added to list
ipv4-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes) |
Object created
Internal error
Object already exists
Example URL
List of IPv4 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes to be added or updated
netgate-route-table:ipv4-routes-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4RoutesWrapper) |
Object created
Object modified
Internal error
Example URL
List of IPv4 routes by destination prefix.
name required | string Id of route-table |
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/static-routes/route-table=%7Bname%7D/ipv4-routes" 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
Routes are index by their destination.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route to be added to list
route | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route) |
Object created
Internal error
Object already exists
Example URL
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route
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/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D" 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
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route to be added or updated
netgate-route-table:route-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.RouteWrapper) |
Object created
Object modified
Internal error
Example URL
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
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/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop
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/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop to be added to list
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop) |
Object created
Internal error
Object already exists
Example URL
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop to be added or updated
netgate-route-table:next-hop-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHopWrapper) |
Object created
Object modified
Internal error
Example URL
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
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/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop to be added to list
hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop) |
Object created
Internal error
Object already exists
Example URL
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop
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/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop to be added or updated
netgate-route-table:hop-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.HopWrapper) |
Object created
Object modified
Internal error
Example URL
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
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/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
List of IPv6 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes
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/route-table=%7Bname%7D/ipv6-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
List of IPv6 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes to be added to list
ipv6-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes) |
Object created
Internal error
Object already exists
Example URL
List of IPv6 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes to be added or updated
netgate-route-table:ipv6-routes-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6RoutesWrapper) |
Object created
Object modified
Internal error
Example URL
List of IPv6 routes by destination prefix.
name required | string Id of route-table |
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/static-routes/route-table=%7Bname%7D/ipv6-routes" 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
Routes are index by their destination.
name required | string Id of route-table |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route to be added to list
route | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route) |
Object created
Internal error
Object already exists
Example URL
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route
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/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D" 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
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route to be added or updated
netgate-route-table:route-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.RouteWrapper) |
Object created
Object modified
Internal error
Example URL
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
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/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop
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/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop to be added to list
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop) |
Object created
Internal error
Object already exists
Example URL
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop to be added or updated
netgate-route-table:next-hop-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHopWrapper) |
Object created
Object modified
Internal error
Example URL
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
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/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop to be added to list
hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop) |
Object created
Internal error
Object already exists
Example URL
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop
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/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop to be added or updated
netgate-route-table:hop-wrapper | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.HopWrapper) |
Object created
Object modified
Internal error
Example URL
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
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/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
Route Table define a set of static IPv4 and IPv6 routes.
netgate.route.table.RouteTableState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-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
Static routes.
netgate.route.table.routetablestate.StaticRoutes
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/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
Route table entries are indexed by their name. Table names are unique across all address families.
name required | string Id of route-table |
netgate.route.table.routetablestate.staticroutes.RouteTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D" 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
List of IPv4 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetablestate.staticroutes.routetable.Ipv4Routes
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv4-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
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetablestate.staticroutes.routetable.ipv4routes.Route
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetablestate.staticroutes.routetable.ipv4routes.route.NextHop
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetablestate.staticroutes.routetable.ipv4routes.route.nexthop.Hop
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv4-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
List of IPv6 routes by destination prefix.
name required | string Id of route-table |
netgate.route.table.routetablestate.staticroutes.routetable.Ipv6Routes
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv6-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
Routes are index by their destination.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetablestate.staticroutes.routetable.ipv6routes.Route
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D" 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
Next-hop configuration.
name required | string Id of route-table |
destination-prefix required | string Id of route |
netgate.route.table.routetablestate.staticroutes.routetable.ipv6routes.route.NextHop
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop" 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
A list of next-hops.
name required | string Id of route-table |
destination-prefix required | string Id of route |
hop-id required | integer <int64> Id of hop |
netgate.route.table.routetablestate.staticroutes.routetable.ipv6routes.route.nexthop.Hop
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-route-table:route-table-state/static-routes/route-table=%7Bname%7D/ipv6-routes/route=%7Bdestination-prefix%7D/next-hop/hop=%7Bhop-id%7D" 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
operates on netgate.route.table.RouteLookup
input | object (netgate.route.table.routelookup.Input) |
Correct response
No response
Internal error