netgate-vxlan API (24.02)

This YANG module provides a Netgate-defined data-model for VXLAN data.

Copyright 2018-2020 Rubicon Communications, LLC.

vxlan-config

returns netgate.vxlan.VxlanConfig

get /data/netgate-vxlan:vxlan-config

Example URL

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

Configuration for VXLAN tunnels.

Responses

200

netgate.vxlan.VxlanConfig

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-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-vxlan:vxlan-config-wrapper":
    {
    }
}

creates netgate.vxlan.VxlanConfig

post /data/netgate-vxlan:vxlan-config

Example URL

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

Configuration for VXLAN tunnels.

Request Body schema: application/yang-data+json

netgate.vxlan.VxlanConfig to be added to list

netgate-vxlan:vxlan-config
object (netgate.vxlan.VxlanConfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.vxlan.VxlanConfig

put /data/netgate-vxlan:vxlan-config

Example URL

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

Configuration for VXLAN tunnels.

Request Body schema: application/yang-data+json

netgate.vxlan.VxlanConfig to be added or updated

netgate-vxlan:vxlan-config-wrapper
object (netgate.vxlan.VxlanConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.vxlan.VxlanConfig

delete /data/netgate-vxlan:vxlan-config

Example URL

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

Configuration for VXLAN tunnels.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-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))

}

returns netgate.vxlan.vxlanconfig.VxlanTable

get /data/netgate-vxlan:vxlan-config/vxlan-table

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table

VXLAN table.

Responses

200

netgate.vxlan.vxlanconfig.VxlanTable

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table"

	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-vxlan:vxlan-table-wrapper":
    {
    }
}

creates netgate.vxlan.vxlanconfig.VxlanTable

post /data/netgate-vxlan:vxlan-config/vxlan-table

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table

VXLAN table.

Request Body schema: application/yang-data+json

netgate.vxlan.vxlanconfig.VxlanTable to be added to list

vxlan-table
object (netgate.vxlan.vxlanconfig.VxlanTable)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.vxlan.vxlanconfig.VxlanTable

put /data/netgate-vxlan:vxlan-config/vxlan-table

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table

VXLAN table.

Request Body schema: application/yang-data+json

netgate.vxlan.vxlanconfig.VxlanTable to be added or updated

netgate-vxlan:vxlan-table-wrapper
object (netgate.vxlan.vxlanconfig.VxlanTableWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-vxlan:vxlan-table-wrapper":
    {
    }
}

removes netgate.vxlan.vxlanconfig.VxlanTable

delete /data/netgate-vxlan:vxlan-config/vxlan-table

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table

VXLAN table.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table"

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

}

creates netgate.vxlan.vxlanconfig.vxlantable.Tunnel

post /data/netgate-vxlan:vxlan-config/vxlan-table/tunnel

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel

VXLAN tunnel name.

Request Body schema: application/yang-data+json

netgate.vxlan.vxlanconfig.vxlantable.Tunnel to be added to list

tunnel
object (netgate.vxlan.vxlanconfig.vxlantable.Tunnel)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

returns netgate.vxlan.vxlanconfig.vxlantable.Tunnel

get /data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

VXLAN tunnel name.

path Parameters
name
required
string

Id of tunnel

Responses

200

netgate.vxlan.vxlanconfig.vxlantable.Tunnel

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel=%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))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-vxlan:tunnel-wrapper":
    {
    }
}

creates or updates netgate.vxlan.vxlanconfig.vxlantable.Tunnel

put /data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

VXLAN tunnel name.

path Parameters
name
required
string

Id of tunnel

Request Body schema: application/yang-data+json

netgate.vxlan.vxlanconfig.vxlantable.Tunnel to be added or updated

netgate-vxlan:tunnel-wrapper
object (netgate.vxlan.vxlanconfig.vxlantable.TunnelWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-vxlan:tunnel-wrapper":
    {
    }
}

removes netgate.vxlan.vxlanconfig.vxlantable.Tunnel

delete /data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel={name}

VXLAN tunnel name.

path Parameters
name
required
string

Id of tunnel

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel=%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))

}

vxlan-state

returns netgate.vxlan.VxlanState

get /data/netgate-vxlan:vxlan-state

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-state

State of the VXLAN tunnels.

Responses

200

netgate.vxlan.VxlanState

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-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))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-vxlan:vxlan-state-wrapper":
    {
    }
}

returns netgate.vxlan.vxlanstate.VxlanTable

get /data/netgate-vxlan:vxlan-state/vxlan-table

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table

VXLAN table.

Responses

200

netgate.vxlan.vxlanstate.VxlanTable

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table"

	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-vxlan:vxlan-table-wrapper":
    {
    }
}

returns netgate.vxlan.vxlanstate.vxlantable.Tunnel

get /data/netgate-vxlan:vxlan-state/vxlan-table/tunnel={name}

Example URL

https://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table/tunnel={name}

VXLAN tunnel name.

path Parameters
name
required
string

Id of tunnel

Responses

200

netgate.vxlan.vxlanstate.vxlantable.Tunnel

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table/tunnel=%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))

}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-vxlan:tunnel-wrapper":
    {
    }
}