This YANG module provides a Netgate-defined data model for configuration of cryptographic parameters.
Copyright 2022 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-crypto:crypto-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-crypto:crypto-config": {
- "netgate-crypto:asynchronous": {
- "netgate-crypto:dispatch-mode": "adaptive"
}
}
}
Crypography configurations.
netgate.crypto.CryptoConfig to be added to list
object (netgate.crypto.cryptoconfig.Asynchronous) Asynchronous processing of cryptographic operations. |
{- "netgate-crypto:asynchronous": {
- "netgate-crypto:dispatch-mode": "adaptive"
}
}
Crypography configurations.
netgate.crypto.CryptoConfig to be added or updated
object (netgate.crypto.CryptoConfig) Crypography configurations. |
{- "netgate-crypto:crypto-config": {
- "netgate-crypto:asynchronous": {
- "netgate-crypto:dispatch-mode": "adaptive"
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-crypto:crypto-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)) }
Asynchronous processing of cryptographic operations.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous" 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-crypto:asynchronous": {
- "netgate-crypto:dispatch-mode": "adaptive"
}
}
Asynchronous processing of cryptographic operations.
netgate.crypto.cryptoconfig.Asynchronous to be added to list
netgate-crypto:dispatch-mode | string (netgate.crypto.AsynchronousDispatchMode) Enum: "adaptive" "polling" "interrupt" |
{- "netgate-crypto:dispatch-mode": "adaptive"
}
Asynchronous processing of cryptographic operations.
netgate.crypto.cryptoconfig.Asynchronous to be added or updated
object (netgate.crypto.cryptoconfig.Asynchronous) Asynchronous processing of cryptographic operations. |
{- "netgate-crypto:asynchronous": {
- "netgate-crypto:dispatch-mode": "adaptive"
}
}
Asynchronous processing of cryptographic operations.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous" 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)) }