This YANG module provides a Netgate-defined data-model for neighbor data.
Copyright 2017-2019 Rubicon Communications, LLC.
Example URL
Neighbor configuration data.
netgate.neighbor.NeighborConfig
Internal error
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)) }
Example URL
Neighbor configuration data.
netgate.neighbor.NeighborConfig to be added to list
neighbor-table | object (netgate.neighbor.neighborconfig.NeighborTable) |
Object created
Internal error
Object already exists
Example URL
Neighbor configuration data.
netgate.neighbor.NeighborConfig to be added or updated
netgate-neighbor:neighbor-config | object (netgate.neighbor.NeighborConfig) |
Object created
Object modified
Internal error
Example URL
Neighbor configuration data.
Object deleted
Internal error
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)) }
Example URL
Neighbor mapping table.
netgate.neighbor.neighborconfig.NeighborTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor: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)) }
Example URL
Neighbor mapping table.
netgate.neighbor.neighborconfig.NeighborTable to be added to list
interface | Array of objects (netgate.neighbor.neighborconfig.neighbortable.Interface) Neighbor table entry. |
Object created
Internal error
Object already exists
Example URL
Neighbor mapping table.
netgate.neighbor.neighborconfig.NeighborTable to be added or updated
netgate-neighbor:neighbor-table | object (netgate.neighbor.neighborconfig.NeighborTable) |
Object created
Object modified
Internal error
Example URL
Neighbor mapping table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor: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)) }
Example URL
Neighbor table entry.
netgate.neighbor.neighborconfig.neighbortable.Interface to be added to list
if-name | string The interface on which the neighbor entry is found. |
neighbors | object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors) |
Object created
Internal error
Object already exists
Example URL
Neighbor table entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor: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)) }
Example URL
Neighbor table entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.Interface to be added to list
if-name | string The interface on which the neighbor entry is found. |
neighbors | object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors) |
Object created
Internal error
Object already exists
Example URL
Neighbor table entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.Interface to be added or updated
netgate-neighbor:interface | object (netgate.neighbor.neighborconfig.neighbortable.Interface) |
Object created
Object modified
Internal error
Example URL
Neighbor table entry.
if-name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor: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)) }
Example URL
Addresses for which there is a neighbor Entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor: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)) }
Example URL
Addresses for which there is a neighbor Entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors to be added to list
neighbor-entry | Array of objects (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry) Neighbor entry table. |
Object created
Internal error
Object already exists
Example URL
Addresses for which there is a neighbor Entry.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors to be added or updated
netgate-neighbor:neighbors | object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors) |
Object created
Object modified
Internal error
Example URL
Addresses for which there is a neighbor Entry.
if-name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor: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)) }
Example URL
Neighbor entry table.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added to list
mac-address | string The MAC address of an neighbor entry. |
ip-address | string The IP address whose MAC address is stated. |
is-no-route-table-entry | boolean True if this neighbor entry is shoud have no entry made in the adjacency route table. |
Object created
Internal error
Object already exists
Example URL
Neighbor entry table.
if-name required | string Id of interface |
ip-address required | string Id of neighbor-entry |
netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor:neighbors/netgate-neighbor: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)) }
Example URL
Neighbor entry table.
if-name required | string Id of interface |
ip-address required | string Id of neighbor-entry |
netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added to list
mac-address | string The MAC address of an neighbor entry. |
ip-address | string The IP address whose MAC address is stated. |
is-no-route-table-entry | boolean True if this neighbor entry is shoud have no entry made in the adjacency route table. |
Object created
Internal error
Object already exists
Example URL
Neighbor entry table.
if-name required | string Id of interface |
ip-address required | string Id of neighbor-entry |
netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added or updated
netgate-neighbor:neighbor-entry | object (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry) |
Object created
Object modified
Internal error
Example URL
Neighbor entry table.
if-name required | string Id of interface |
ip-address required | string Id of neighbor-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-config/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor:neighbors/netgate-neighbor: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)) }
Example URL
Neighbor table state.
netgate.neighbor.NeighborState
Internal error
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)) }
Example URL
Neighbor mapping table.
netgate.neighbor.neighborstate.NeighborTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/netgate-neighbor: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)) }
Example URL
Neighbor table entry.
if-name required | string Id of interface |
netgate.neighbor.neighborstate.neighbortable.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/netgate-neighbor:neighbor-table/netgate-neighbor: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)) }
Example URL
Addresses for which there is a neighbor Entry.
if-name required | string Id of interface |
netgate.neighbor.neighborstate.neighbortable.interface.Neighbors
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor: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)) }
Example URL
Neighbor entry table.
if-name required | string Id of interface |
ip-address required | string Id of neighbor-entry |
netgate.neighbor.neighborstate.neighbortable.interface.neighbors.NeighborEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-neighbor:neighbor-state/netgate-neighbor:neighbor-table/netgate-neighbor:interface=%7Bif-name%7D/netgate-neighbor:neighbors/netgate-neighbor: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)) }