This YANG module provides a Netgate-defined data-model for Route Tables.
Copyright 2017-2019 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
static-routes | object (netgate.route.table.routetableconfig.StaticRoutes) |
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 | object (netgate.route.table.RouteTableConfig) |
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/netgate-route-table: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
route-table | Array of objects (netgate.route.table.routetableconfig.staticroutes.RouteTable) Route table entries are indexed by their name. Table names are unique across all address families. |
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 | object (netgate.route.table.routetableconfig.StaticRoutes) |
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/netgate-route-table: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
name | string The name of a Route Table. |
ipv4-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes) |
description | string A description of the route table. |
ipv6-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes) |
address-family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
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/netgate-route-table:static-routes/netgate-route-table: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 to list
name | string The name of a Route Table. |
ipv4-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes) |
description | string A description of the route table. |
ipv6-routes | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes) |
address-family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
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 to be added or updated
netgate-route-table:route-table | object (netgate.route.table.routetableconfig.staticroutes.RouteTable) |
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/netgate-route-table:static-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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
route | Array of objects (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route) Routes are index by their destination. |
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 | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv4Routes) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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
description | string A description of the route. |
destination-prefix | string IPv4 destination prefix |
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table: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 to list
description | string A description of the route. |
destination-prefix | string IPv4 destination prefix |
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop) |
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 to be added or updated
netgate-route-table:route | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.Route) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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
hop | Array of objects (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop) A list of next-hops. |
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 | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.NextHop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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
drop | boolean Drop the packet. |
null-send-unreach | boolean Drop packet with an 'unreachable' reply. |
preference | integer <int32> Administrative distance preference. |
weight | integer <int32> Multipath route weight. |
resolve-host | boolean Resolve host |
null-send-prohibit | boolean Drop packet with n 'prohibited' reply. |
local | boolean Receive the packet locally. |
if-name | string The next hop interface name. |
ipv4-address | string The next hop IPv4 address. |
resolve-attached | boolean Resolve attached |
classify-table-name | string Use the given Classify Table name as the next hop. |
hop-id | integer <int64> A unique identifier for each next-hop. |
next-hop-table-name | string The next hop route table name. |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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 to list
drop | boolean Drop the packet. |
null-send-unreach | boolean Drop packet with an 'unreachable' reply. |
preference | integer <int32> Administrative distance preference. |
weight | integer <int32> Multipath route weight. |
resolve-host | boolean Resolve host |
null-send-prohibit | boolean Drop packet with n 'prohibited' reply. |
local | boolean Receive the packet locally. |
if-name | string The next hop interface name. |
ipv4-address | string The next hop IPv4 address. |
resolve-attached | boolean Resolve attached |
classify-table-name | string Use the given Classify Table name as the next hop. |
hop-id | integer <int64> A unique identifier for each next-hop. |
next-hop-table-name | string The next hop route table name. |
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 to be added or updated
netgate-route-table:hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv4routes.route.nexthop.Hop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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
route | Array of objects (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route) Routes are index by their destination. |
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 | object (netgate.route.table.routetableconfig.staticroutes.routetable.Ipv6Routes) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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
description | string A description of the route. |
destination-prefix | string IPv6 destination prefix |
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table: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 to list
description | string A description of the route. |
destination-prefix | string IPv6 destination prefix |
next-hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop) |
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 to be added or updated
netgate-route-table:route | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.Route) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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
hop | Array of objects (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop) A list of next-hops. |
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 | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.NextHop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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
drop | boolean Drop the packet. |
null-send-unreach | boolean Drop packet with an 'unreachable' reply. |
preference | integer <int32> Administrative distance preference. |
weight | integer <int32> Multipath route weight. |
resolve-host | boolean Resolve host |
null-send-prohibit | boolean Drop packet with a 'prohibited' reply. |
local | boolean Receive the packet locally. |
ipv6-address | string The next hop IPv6 address. |
if-name | string The next hop interface name. |
resolve-attached | boolean Resolve attached |
classify-table-name | string Use the given Classify Table name as the next hop. |
hop-id | integer <int64> A unique identifier for each next-hop. |
next-hop-table-name | string The next hop route table name. |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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 to list
drop | boolean Drop the packet. |
null-send-unreach | boolean Drop packet with an 'unreachable' reply. |
preference | integer <int32> Administrative distance preference. |
weight | integer <int32> Multipath route weight. |
resolve-host | boolean Resolve host |
null-send-prohibit | boolean Drop packet with a 'prohibited' reply. |
local | boolean Receive the packet locally. |
ipv6-address | string The next hop IPv6 address. |
if-name | string The next hop interface name. |
resolve-attached | boolean Resolve attached |
classify-table-name | string Use the given Classify Table name as the next hop. |
hop-id | integer <int64> A unique identifier for each next-hop. |
next-hop-table-name | string The next hop route table name. |
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 to be added or updated
netgate-route-table:hop | object (netgate.route.table.routetableconfig.staticroutes.routetable.ipv6routes.route.nexthop.Hop) |
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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv4-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table: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/netgate-route-table:static-routes/netgate-route-table:route-table=%7Bname%7D/netgate-route-table:ipv6-routes/netgate-route-table:route=%7Bdestination-prefix%7D/netgate-route-table:next-hop/netgate-route-table: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)) }