This YANG module provides a Netgate-defined data-model for Linux Kernel sysctl parameters.
Copyright 2018-2019 Rubicon Communications, LLC.
Example URL
Linux kernel sysctl parameters.
netgate.sysctl.SysctlConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-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
Linux kernel sysctl parameters.
netgate.sysctl.SysctlConfig to be added to list
kernel | object (netgate.sysctl.sysctlconfig.Kernel) |
vm | object (netgate.sysctl.sysctlconfig.Vm) |
Object created
Internal error
Object already exists
Example URL
Linux kernel sysctl parameters.
netgate.sysctl.SysctlConfig to be added or updated
netgate-sysctl:sysctl-config | object (netgate.sysctl.SysctlConfig) |
Object created
Object modified
Internal error
Example URL
Linux kernel sysctl parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-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
Kernel sysctl parameters.
netgate.sysctl.sysctlconfig.Kernel
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-config/netgate-sysctl:kernel" 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
Kernel sysctl parameters.
netgate.sysctl.sysctlconfig.Kernel to be added to list
shmmax | integer <int32> Shared memory maximum. |
Object created
Internal error
Object already exists
Example URL
Kernel sysctl parameters.
netgate.sysctl.sysctlconfig.Kernel to be added or updated
netgate-sysctl:kernel | object (netgate.sysctl.sysctlconfig.Kernel) |
Object created
Object modified
Internal error
Example URL
Kernel sysctl parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-config/netgate-sysctl:kernel" 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
VM sysctl parameters.
netgate.sysctl.sysctlconfig.Vm
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-config/netgate-sysctl:vm" 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
VM sysctl parameters.
netgate.sysctl.sysctlconfig.Vm to be added to list
max_map_count | integer <int32> Maximum map count. |
nr_hugepages | integer <int32> Number of hugepages. |
Object created
Internal error
Object already exists
Example URL
VM sysctl parameters.
netgate.sysctl.sysctlconfig.Vm to be added or updated
netgate-sysctl:vm | object (netgate.sysctl.sysctlconfig.Vm) |
Object created
Object modified
Internal error
Example URL
VM sysctl parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-config/netgate-sysctl:vm" 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
Linux kernel sysctl parameters.
netgate.sysctl.SysctlState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-state" 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
Kernel sysctl parameters.
netgate.sysctl.sysctlstate.Kernel
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-state/netgate-sysctl:kernel" 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
VM sysctl parameters.
netgate.sysctl.sysctlstate.Vm
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-sysctl:sysctl-state/netgate-sysctl:vm" 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)) }