netgate-neighbor API (24.06)

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

Copyright 2017-2020 Rubicon Communications, LLC.

neighbor-config

returns netgate.neighbor.NeighborConfig

Neighbor configuration data.

Responses

Request samples

package main

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

func main() {

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

creates netgate.neighbor.NeighborConfig

Neighbor configuration data.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborConfig to be added to list

object (netgate.neighbor.neighborconfig.NeighborTable)

Neighbor mapping table.

object (netgate.neighbor.neighborconfig.NeighborCacheOptions)

Neighbor cache options.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-table": {
    },
  • "netgate-neighbor:neighbor-cache-options": {
    }
}

creates or updates netgate.neighbor.NeighborConfig

Neighbor configuration data.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborConfig to be added or updated

object (netgate.neighbor.NeighborConfig)

Neighbor configuration data.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-config": {
    }
}

removes netgate.neighbor.NeighborConfig

Neighbor configuration data.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-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.neighbor.neighborconfig.NeighborCacheOptions

Neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options"

	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
{
  • "netgate-neighbor:neighbor-cache-options": {
    }
}

creates netgate.neighbor.neighborconfig.NeighborCacheOptions

Neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.NeighborCacheOptions to be added to list

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:ipv4": {
    },
  • "netgate-neighbor:ipv6": {
    }
}

creates or updates netgate.neighbor.neighborconfig.NeighborCacheOptions

Neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.NeighborCacheOptions to be added or updated

object (netgate.neighbor.neighborconfig.NeighborCacheOptions)

Neighbor cache options.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-cache-options": {
    }
}

removes netgate.neighbor.neighborconfig.NeighborCacheOptions

Neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options"

	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.neighbor.NeighborCacheOptionsConfig

IPv4 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options/ipv4"

	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
{
  • "netgate-neighbor:ipv4": {
    }
}

creates netgate.neighbor.NeighborCacheOptionsConfig

IPv4 neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborCacheOptionsConfig to be added to list

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:ipv4": {
    }
}

creates or updates netgate.neighbor.NeighborCacheOptionsConfig

IPv4 neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborCacheOptionsConfig to be added or updated

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:ipv4": {
    }
}

removes netgate.neighbor.NeighborCacheOptionsConfig

IPv4 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options/ipv4"

	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.neighbor.NeighborCacheOptionsConfig

IPv6 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options/ipv6"

	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
{
  • "netgate-neighbor:ipv4": {
    }
}

creates netgate.neighbor.NeighborCacheOptionsConfig

IPv6 neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborCacheOptionsConfig to be added to list

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:ipv4": {
    }
}

creates or updates netgate.neighbor.NeighborCacheOptionsConfig

IPv6 neighbor cache options.

Request Body schema: application/yang-data+json

netgate.neighbor.NeighborCacheOptionsConfig to be added or updated

object (netgate.neighbor.NeighborCacheOptionsConfig)

Group of attributes for neighbor cache options state.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:ipv4": {
    }
}

removes netgate.neighbor.NeighborCacheOptionsConfig

IPv6 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-cache-options/ipv6"

	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.neighbor.neighborconfig.NeighborTable

Neighbor mapping table.

Responses

Request samples

package main

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

func main() {

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

creates netgate.neighbor.neighborconfig.NeighborTable

Neighbor mapping table.

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.NeighborTable to be added to list

Array of objects (netgate.neighbor.neighborconfig.neighbortable.Interface)

Neighbor table entry.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:interface": [
    ]
}

creates or updates netgate.neighbor.neighborconfig.NeighborTable

Neighbor mapping table.

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.NeighborTable to be added or updated

object (netgate.neighbor.neighborconfig.NeighborTable)

Neighbor mapping table.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-table": {
    }
}

removes netgate.neighbor.neighborconfig.NeighborTable

Neighbor mapping table.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-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.neighbor.neighborconfig.neighbortable.Interface

Neighbor table entry.

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.Interface to be added to list

netgate-neighbor:if-name
string

The interface on which the neighbor entry is found.

object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors)

Addresses for which there is a neighbor Entry.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:if-name": "string",
  • "netgate-neighbor:neighbors": {
    }
}

returns netgate.neighbor.neighborconfig.neighbortable.Interface

Neighbor table entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%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
{
  • "netgate-neighbor:interface": {
    }
}

creates or updates netgate.neighbor.neighborconfig.neighbortable.Interface

Neighbor table entry.

path Parameters
if-name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.Interface to be added or updated

object (netgate.neighbor.neighborconfig.neighbortable.Interface)

Neighbor table entry.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:interface": {
    }
}

removes netgate.neighbor.neighborconfig.neighbortable.Interface

Neighbor table entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%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))

}

returns netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors

Addresses for which there is a neighbor Entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%7D/neighbors"

	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
{
  • "netgate-neighbor:neighbors": {
    }
}

creates netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors

Addresses for which there is a neighbor Entry.

path Parameters
if-name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors to be added to list

Array of objects (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry)

Neighbor entry table.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-entry": [
    ]
}

creates or updates netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors

Addresses for which there is a neighbor Entry.

path Parameters
if-name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors to be added or updated

object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors)

Addresses for which there is a neighbor Entry.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbors": {
    }
}

removes netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors

Addresses for which there is a neighbor Entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%7D/neighbors"

	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.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry

Neighbor entry table.

path Parameters
if-name
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added to list

netgate-neighbor:mac-address
string

The MAC address of an neighbor entry.

netgate-neighbor:ip-address
string

The IP address whose MAC address is stated.

netgate-neighbor:is-no-route-table-entry
boolean

True if this neighbor entry is shoud have no entry made in the adjacency route table.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:mac-address": "string",
  • "netgate-neighbor:ip-address": "string",
  • "netgate-neighbor:is-no-route-table-entry": true
}

returns netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry

Neighbor entry table.

path Parameters
if-name
required
string

Id of interface

ip-address
required
string

Id of neighbor-entry

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%7D/neighbors/neighbor-entry=%7Bip-address%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
{
  • "netgate-neighbor:neighbor-entry": {
    }
}

creates or updates netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry

Neighbor entry table.

path Parameters
if-name
required
string

Id of interface

ip-address
required
string

Id of neighbor-entry

Request Body schema: application/yang-data+json

netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added or updated

object (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry)

Neighbor entry table.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-neighbor:neighbor-entry": {
    }
}

removes netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry

Neighbor entry table.

path Parameters
if-name
required
string

Id of interface

ip-address
required
string

Id of neighbor-entry

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/neighbor-table/interface=%7Bif-name%7D/neighbors/neighbor-entry=%7Bip-address%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))

}

neighbor-state

returns netgate.neighbor.NeighborState

Neighbor state data.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-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
{
  • "netgate-neighbor:neighbor-state": {
    }
}

returns netgate.neighbor.neighborstate.NeighborCacheOptions

Neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-cache-options"

	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
{
  • "netgate-neighbor:neighbor-cache-options": {
    }
}

returns netgate.neighbor.NeighborCacheOptionsState

IPv4 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-cache-options/ipv4"

	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
{
  • "netgate-neighbor:ipv4": {
    }
}

returns netgate.neighbor.NeighborCacheOptionsState

IPv6 neighbor cache options.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-cache-options/ipv6"

	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
{
  • "netgate-neighbor:ipv4": {
    }
}

returns netgate.neighbor.neighborstate.NeighborTable

Neighbor mapping table.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-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
{
  • "netgate-neighbor:neighbor-table": {
    }
}

returns netgate.neighbor.neighborstate.neighbortable.Interface

Neighbor table entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-table/interface=%7Bif-name%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
{
  • "netgate-neighbor:interface": {
    }
}

returns netgate.neighbor.neighborstate.neighbortable.interface.Neighbors

Addresses for which there is a neighbor Entry.

path Parameters
if-name
required
string

Id of interface

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-table/interface=%7Bif-name%7D/neighbors"

	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
{
  • "netgate-neighbor:neighbors": {
    }
}

returns netgate.neighbor.neighborstate.neighbortable.interface.neighbors.NeighborEntry

Neighbor entry table.

path Parameters
if-name
required
string

Id of interface

ip-address
required
string

Id of neighbor-entry

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/neighbor-table/interface=%7Bif-name%7D/neighbors/neighbor-entry=%7Bip-address%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
{
  • "netgate-neighbor:neighbor-entry": {
    }
}