This YANG module provides a Netgate-defined data-model for neighbor data.
Copyright 2017-2020 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
netgate-neighbor:neighbor-config | object (netgate.neighbor.NeighborConfig) |
Object created
Internal error
Object already exists
Example URL
Neighbor configuration data.
netgate.neighbor.NeighborConfig to be added or updated
netgate-neighbor:neighbor-config-wrapper | object (netgate.neighbor.NeighborConfigWrapper) |
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 cache options.
netgate.neighbor.neighborconfig.NeighborCacheOptions
Internal error
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)) }
Example URL
Neighbor cache options.
netgate.neighbor.neighborconfig.NeighborCacheOptions to be added to list
neighbor-cache-options | object (netgate.neighbor.neighborconfig.NeighborCacheOptions) |
Object created
Internal error
Object already exists
Example URL
Neighbor cache options.
netgate.neighbor.neighborconfig.NeighborCacheOptions to be added or updated
netgate-neighbor:neighbor-cache-options-wrapper | object (netgate.neighbor.neighborconfig.NeighborCacheOptionsWrapper) |
Object created
Object modified
Internal error
Example URL
Neighbor cache options.
Object deleted
Internal error
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)) }
Example URL
IPv4 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig
Internal error
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)) }
Example URL
IPv4 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig to be added to list
ipv4 | object (netgate.neighbor.NeighborCacheOptionsConfig) |
Object created
Internal error
Object already exists
Example URL
IPv4 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig to be added or updated
ipv4 | object (netgate.neighbor.NeighborCacheOptionsConfig) |
Object created
Object modified
Internal error
Example URL
IPv4 neighbor cache options.
Object deleted
Internal error
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)) }
Example URL
IPv6 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig
Internal error
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)) }
Example URL
IPv6 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig to be added to list
ipv4 | object (netgate.neighbor.NeighborCacheOptionsConfig) |
Object created
Internal error
Object already exists
Example URL
IPv6 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsConfig to be added or updated
ipv4 | object (netgate.neighbor.NeighborCacheOptionsConfig) |
Object created
Object modified
Internal error
Example URL
IPv6 neighbor cache options.
Object deleted
Internal error
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)) }
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/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
neighbor-table | object (netgate.neighbor.neighborconfig.NeighborTable) |
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-wrapper | object (netgate.neighbor.neighborconfig.NeighborTableWrapper) |
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/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
interface | object (netgate.neighbor.neighborconfig.neighbortable.Interface) |
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/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)) }
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-wrapper | object (netgate.neighbor.neighborconfig.neighbortable.InterfaceWrapper) |
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/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)) }
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/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)) }
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
neighbors | object (netgate.neighbor.neighborconfig.neighbortable.interface.Neighbors) |
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-wrapper | object (netgate.neighbor.neighborconfig.neighbortable.interface.NeighborsWrapper) |
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/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)) }
Example URL
Neighbor entry table.
if-name required | string Id of interface |
netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry to be added to list
neighbor-entry | object (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntry) |
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/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)) }
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-wrapper | object (netgate.neighbor.neighborconfig.neighbortable.interface.neighbors.NeighborEntryWrapper) |
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/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)) }
Example URL
Neighbor state data.
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 cache options.
netgate.neighbor.neighborstate.NeighborCacheOptions
Internal error
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)) }
Example URL
IPv4 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsState
Internal error
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)) }
Example URL
IPv6 neighbor cache options.
netgate.neighbor.NeighborCacheOptionsState
Internal error
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)) }
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/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/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)) }
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/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)) }
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/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)) }