This YANG module provides a data model for the VPP LLDP Service.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
returns netgate.lldp.LldpConfig
netgate.lldp.LldpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-lldp:lldp-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
creates netgate.lldp.LldpConfig
netgate.lldp.LldpConfig to be added to list
netgate-lldp:lldp-config | object (netgate.lldp.LldpConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.lldp.LldpConfig
netgate.lldp.LldpConfig to be added or updated
netgate-lldp:lldp-config-wrapper | object (netgate.lldp.LldpConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.lldp.LldpConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-lldp:lldp-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)) }