netgate-route API (19.02)

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.

route-config

returns netgate.route.RouteConfig

get /data/netgate-route:route-config

Example URL

https://hostname/restconf/data/netgate-route:route-config

Root container for routing models

Responses

200

netgate.route.RouteConfig

400

Internal error

Request samples

Copy
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))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-route:route-config":
    {
    }
}

creates netgate.route.RouteConfig

post /data/netgate-route:route-config

Example URL

https://hostname/restconf/data/netgate-route:route-config

Root container for routing models

Request Body schema: application/yang-data+json

netgate.route.RouteConfig to be added to list

dynamic
object (netgate.route.routeconfig.Dynamic)
static
object (netgate.route.routeconfig.Static)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "dynamic":
    {