This module defines startup configuration settings for VPP.
This includes items related to how VPP itself is run, such as memory allocations, which devices to manage, which drivers to use.
This does not include dataplane configurations such as the IP address assigned to an interface or IP routes. to the underlying data-model elements for the Netgate router.
Copyright 2018-2020 Rubicon Communications, LLC.
Example URL
dataplane startup configurations
netgate.dataplane.DataplaneConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-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
dataplane startup configurations
netgate.dataplane.DataplaneConfig to be added to list
netgate-dataplane:dataplane-config | object (netgate.dataplane.DataplaneConfig) |
Object created
Internal error
Object already exists
Example URL
dataplane startup configurations
netgate.dataplane.DataplaneConfig to be added or updated
netgate-dataplane:dataplane-config-wrapper | object (netgate.dataplane.DataplaneConfigWrapper) |
Object created
Object modified
Internal error
Example URL
dataplane startup configurations
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-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
VPP API segment configuration
netgate.dataplane.dataplaneconfig.ApiSegment
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/api-segment" 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
VPP API segment configuration
netgate.dataplane.dataplaneconfig.ApiSegment to be added to list
api-segment | object (netgate.dataplane.dataplaneconfig.ApiSegment) |
Object created
Internal error
Object already exists
Example URL
VPP API segment configuration
netgate.dataplane.dataplaneconfig.ApiSegment to be added or updated
netgate-dataplane:api-segment-wrapper | object (netgate.dataplane.dataplaneconfig.ApiSegmentWrapper) |
Object created
Object modified
Internal error
Example URL
VPP API segment configuration
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/api-segment" 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
VPP pre-allocated buffers configuration
netgate.dataplane.dataplaneconfig.Buffers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/buffers" 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
VPP pre-allocated buffers configuration
netgate.dataplane.dataplaneconfig.Buffers to be added to list
buffers | object (netgate.dataplane.dataplaneconfig.Buffers) |
Object created
Internal error
Object already exists
Example URL
VPP pre-allocated buffers configuration
netgate.dataplane.dataplaneconfig.Buffers to be added or updated
netgate-dataplane:buffers-wrapper | object (netgate.dataplane.dataplaneconfig.BuffersWrapper) |
Object created
Object modified
Internal error
Example URL
VPP pre-allocated buffers configuration
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/buffers" 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
cpu stanza
netgate.dataplane.dataplaneconfig.Cpu
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/cpu" 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
cpu stanza
netgate.dataplane.dataplaneconfig.Cpu to be added to list
cpu | object (netgate.dataplane.dataplaneconfig.Cpu) |
Object created
Internal error
Object already exists
Example URL
cpu stanza
netgate.dataplane.dataplaneconfig.Cpu to be added or updated
netgate-dataplane:cpu-wrapper | object (netgate.dataplane.dataplaneconfig.CpuWrapper) |
Object created
Object modified
Internal error
Example URL
cpu stanza
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/cpu" 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
returns netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers
netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/cpu/corelist-workers" 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.dataplane.dataplaneconfig.cpu.CorelistWorkers
netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers to be added to list
corelist-workers | object (netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers
netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers to be added or updated
netgate-dataplane:corelist-workers-wrapper | object (netgate.dataplane.dataplaneconfig.cpu.CorelistWorkersWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.dataplane.dataplaneconfig.cpu.CorelistWorkers
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/cpu/corelist-workers" 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
dpdk stanza
netgate.dataplane.dataplaneconfig.Dpdk
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk" 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
dpdk stanza
netgate.dataplane.dataplaneconfig.Dpdk to be added to list
dpdk | object (netgate.dataplane.dataplaneconfig.Dpdk) |
Object created
Internal error
Object already exists
Example URL
dpdk stanza
netgate.dataplane.dataplaneconfig.Dpdk to be added or updated
netgate-dataplane:dpdk-wrapper | object (netgate.dataplane.dataplaneconfig.DpdkWrapper) |
Object created
Object modified
Internal error
Example URL
dpdk stanza
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk" 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
returns netgate.dataplane.dataplaneconfig.dpdk.Blacklists
netgate.dataplane.dataplaneconfig.dpdk.Blacklists
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/blacklists" 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.dataplane.dataplaneconfig.dpdk.Blacklists
netgate.dataplane.dataplaneconfig.dpdk.Blacklists to be added to list
blacklists | object (netgate.dataplane.dataplaneconfig.dpdk.Blacklists) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.dataplane.dataplaneconfig.dpdk.Blacklists
netgate.dataplane.dataplaneconfig.dpdk.Blacklists to be added or updated
netgate-dataplane:blacklists-wrapper | object (netgate.dataplane.dataplaneconfig.dpdk.BlacklistsWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.dataplane.dataplaneconfig.dpdk.Blacklists
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/blacklists" 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
Configs for a NIC or crypto device
netgate.dataplane.dataplaneconfig.dpdk.Dev to be added to list
dev | object (netgate.dataplane.dataplaneconfig.dpdk.Dev) |
Object created
Internal error
Object already exists
Example URL
Configs for a NIC or crypto device
id required | string Id of dev |
netgate.dataplane.dataplaneconfig.dpdk.Dev
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/dev=%7Bid%7D" 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
Configs for a NIC or crypto device
id required | string Id of dev |
netgate.dataplane.dataplaneconfig.dpdk.Dev to be added or updated
netgate-dataplane:dev-wrapper | object (netgate.dataplane.dataplaneconfig.dpdk.DevWrapper) |
Object created
Object modified
Internal error
Example URL
Configs for a NIC or crypto device
id required | string Id of dev |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/dev=%7Bid%7D" 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
A list of name=value pairs provided to a white-listed device.
id required | string Id of dev |
netgate.dataplane.dataplaneconfig.dpdk.dev.Devargs
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/dev=%7Bid%7D/devargs" 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
A list of name=value pairs provided to a white-listed device.
id required | string Id of dev |
netgate.dataplane.dataplaneconfig.dpdk.dev.Devargs to be added to list
devargs | object (netgate.dataplane.dataplaneconfig.dpdk.dev.Devargs) |
Object created
Internal error
Object already exists
Example URL
A list of name=value pairs provided to a white-listed device.
id required | string Id of dev |
netgate.dataplane.dataplaneconfig.dpdk.dev.Devargs to be added or updated
netgate-dataplane:devargs-wrapper | object (netgate.dataplane.dataplaneconfig.dpdk.dev.DevargsWrapper) |
Object created
Object modified
Internal error
Example URL
A list of name=value pairs provided to a white-listed device.
id required | string Id of dev |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/dpdk/dev=%7Bid%7D/devargs" 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
Ethernet common configuration
netgate.dataplane.dataplaneconfig.Ethernet
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/ethernet" 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
Ethernet common configuration
netgate.dataplane.dataplaneconfig.Ethernet to be added to list
ethernet | object (netgate.dataplane.dataplaneconfig.Ethernet) |
Object created
Internal error
Object already exists
Example URL
Ethernet common configuration
netgate.dataplane.dataplaneconfig.Ethernet to be added or updated
netgate-dataplane:ethernet-wrapper | object (netgate.dataplane.dataplaneconfig.EthernetWrapper) |
Object created
Object modified
Internal error
Example URL
Ethernet common configuration
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/ethernet" 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
IPv6 settings
netgate.dataplane.dataplaneconfig.Ip6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/ip6" 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
IPv6 settings
netgate.dataplane.dataplaneconfig.Ip6 to be added to list
ip6 | object (netgate.dataplane.dataplaneconfig.Ip6) |
Object created
Internal error
Object already exists
Example URL
IPv6 settings
netgate.dataplane.dataplaneconfig.Ip6 to be added or updated
netgate-dataplane:ip6-wrapper | object (netgate.dataplane.dataplaneconfig.Ip6Wrapper) |
Object created
Object modified
Internal error
Example URL
IPv6 settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/ip6" 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-cp (host stack connectivity) settings
netgate.dataplane.dataplaneconfig.LinuxCp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/linux-cp" 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-cp (host stack connectivity) settings
netgate.dataplane.dataplaneconfig.LinuxCp to be added to list
linux-cp | object (netgate.dataplane.dataplaneconfig.LinuxCp) |
Object created
Internal error
Object already exists
Example URL
Linux-cp (host stack connectivity) settings
netgate.dataplane.dataplaneconfig.LinuxCp to be added or updated
netgate-dataplane:linux-cp-wrapper | object (netgate.dataplane.dataplaneconfig.LinuxCpWrapper) |
Object created
Object modified
Internal error
Example URL
Linux-cp (host stack connectivity) settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/linux-cp" 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
Logging segment settings
netgate.dataplane.dataplaneconfig.Logging
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/logging" 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
Logging segment settings
netgate.dataplane.dataplaneconfig.Logging to be added to list
logging | object (netgate.dataplane.dataplaneconfig.Logging) |
Object created
Internal error
Object already exists
Example URL
Logging segment settings
netgate.dataplane.dataplaneconfig.Logging to be added or updated
netgate-dataplane:logging-wrapper | object (netgate.dataplane.dataplaneconfig.LoggingWrapper) |
Object created
Object modified
Internal error
Example URL
Logging segment settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/logging" 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
Main heap configuration
netgate.dataplane.dataplaneconfig.Memory
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/memory" 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
Main heap configuration
netgate.dataplane.dataplaneconfig.Memory to be added to list
memory | object (netgate.dataplane.dataplaneconfig.Memory) |
Object created
Internal error
Object already exists
Example URL
Main heap configuration
netgate.dataplane.dataplaneconfig.Memory to be added or updated
netgate-dataplane:memory-wrapper | object (netgate.dataplane.dataplaneconfig.MemoryWrapper) |
Object created
Object modified
Internal error
Example URL
Main heap configuration
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/memory" 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
Statistics segment settings
netgate.dataplane.dataplaneconfig.Statseg
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/statseg" 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
Statistics segment settings
netgate.dataplane.dataplaneconfig.Statseg to be added to list
statseg | object (netgate.dataplane.dataplaneconfig.Statseg) |
Object created
Internal error
Object already exists
Example URL
Statistics segment settings
netgate.dataplane.dataplaneconfig.Statseg to be added or updated
netgate-dataplane:statseg-wrapper | object (netgate.dataplane.dataplaneconfig.StatsegWrapper) |
Object created
Object modified
Internal error
Example URL
Statistics segment settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/statseg" 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
returns netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters
netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/statseg/per-node-counters" 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.dataplane.dataplaneconfig.statseg.PerNodeCounters
netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters to be added to list
per-node-counters | object (netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters
netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters to be added or updated
netgate-dataplane:per-node-counters-wrapper | object (netgate.dataplane.dataplaneconfig.statseg.PerNodeCountersWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.dataplane.dataplaneconfig.statseg.PerNodeCounters
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/statseg/per-node-counters" 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
vhost-user startup configuration parameters.
netgate.dataplane.dataplaneconfig.VhostUser
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/vhost-user" 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
vhost-user startup configuration parameters.
netgate.dataplane.dataplaneconfig.VhostUser to be added to list
vhost-user | object (netgate.dataplane.dataplaneconfig.VhostUser) |
Object created
Internal error
Object already exists
Example URL
vhost-user startup configuration parameters.
netgate.dataplane.dataplaneconfig.VhostUser to be added or updated
netgate-dataplane:vhost-user-wrapper | object (netgate.dataplane.dataplaneconfig.VhostUserWrapper) |
Object created
Object modified
Internal error
Example URL
vhost-user startup configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/vhost-user" 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
dataplane state
netgate.dataplane.DataplaneState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-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
cpu stanza
netgate.dataplane.dataplanestate.Cpu
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-state/cpu" 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
Threads.
netgate.dataplane.dataplanestate.cpu.Threads
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-state/cpu/threads" 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
Thread data.
id required | integer <int64> Id of thread |
netgate.dataplane.dataplanestate.cpu.threads.Thread
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-state/cpu/threads/thread=%7Bid%7D" 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
operates on netgate.dataplane.DataplaneControl
input | object (netgate.dataplane.dataplanecontrol.Input) |
Correct response
No response
Internal error
Example URL
operates on netgate.dataplane.DataplaneCoredump
input | object (netgate.dataplane.dataplanecoredump.Input) |
Correct response
No response
Internal error