This YANG module provides a data model for the VPP LLDP Service.
Copyright 2019-2020 Rubicon Communications, LLC.
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)) }
{- "netgate-lldp:lldp-config": {
- "netgate-lldp:system-name": "string",
- "netgate-lldp:tx-interval": 0,
- "netgate-lldp:tx-hold": 0
}
}
Link-layer Discovery Protocol (LLDP) configuration.
netgate.lldp.LldpConfig to be added to list
netgate-lldp:system-name | string LLDP system name |
netgate-lldp:tx-interval | integer <int32> transmit interval range [1..3600] |
netgate-lldp:tx-hold | integer <int32> transmit hold time, range [1..100] |
{- "netgate-lldp:system-name": "string",
- "netgate-lldp:tx-interval": 0,
- "netgate-lldp:tx-hold": 0
}
Link-layer Discovery Protocol (LLDP) configuration.
netgate.lldp.LldpConfig to be added or updated
object (netgate.lldp.LldpConfig) Link-layer Discovery Protocol (LLDP) configuration. |
{- "netgate-lldp:lldp-config": {
- "netgate-lldp:system-name": "string",
- "netgate-lldp:tx-interval": 0,
- "netgate-lldp:tx-hold": 0
}
}
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)) }