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