This YANG module provides a data-model for the NTP service.
Copyright 2018-2020 Rubicon Communications, LLC.
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-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
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig to be added to list
netgate-ntp:ntp-config | object (netgate.ntp.NtpConfig) |
Object created
Internal error
Object already exists
Example URL
Network Time Protocol daemon configuration for time keeping and services.
netgate.ntp.NtpConfig to be added or updated
netgate-ntp:ntp-config-wrapper | object (netgate.ntp.NtpConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Network Time Protocol daemon configuration for time keeping and services.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-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
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ntp:ntp-config/daemon" 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
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon to be added to list
daemon | object (netgate.ntp.ntpconfig.Daemon) |
Object created
Internal error
Object already exists
Example URL
NTP daemon configuration parameters.
netgate.ntp.ntpconfig.Daemon to be added or updated
netgate-ntp:daemon-wrapper | object (netgate.ntp.ntpconfig.DaemonWrapper) |
Object created
Object modified
Internal error