This YANG module provides a data model for the Kea DHCP server.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
returns netgate.kea.KeaConfig
netgate.kea.KeaConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-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.kea.KeaConfig
netgate.kea.KeaConfig to be added to list
netgate-kea:kea-config | object (netgate.kea.KeaConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.kea.KeaConfig
netgate.kea.KeaConfig to be added or updated
netgate-kea:kea-config-wrapper | object (netgate.kea.KeaConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.kea.KeaConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-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
Gather all the parts that contribute to the DHCP4 server.
netgate.kea.keaconfig.Dhcp4Server
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-kea:kea-config/dhcp4-server" 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)) }