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-2019 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
nat | object (netgate.dataplane.dataplaneconfig.Nat) |
cpu | object (netgate.dataplane.dataplaneconfig.Cpu) |
dpdk | object (netgate.dataplane.dataplaneconfig.Dpdk) |
ip6 | object (netgate.dataplane.dataplaneconfig.Ip6) |
ip | object (netgate.dataplane.dataplaneconfig.Ip) |
Object created
Internal error
Object already exists
Example URL
dataplane startup configurations
netgate.dataplane.DataplaneConfig to be added or updated
netgate-dataplane:dataplane-config | object (netgate.dataplane.DataplaneConfig) |
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
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/netgate-dataplane: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
workers | integer <int32> Number of worker threads |
Object created
Internal error
Object already exists
Example URL
cpu stanza
netgate.dataplane.dataplaneconfig.Cpu to be added or updated
netgate-dataplane:cpu | object (netgate.dataplane.dataplaneconfig.Cpu) |
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/netgate-dataplane: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
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/netgate-dataplane: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
vdev | Array of objects (netgate.dataplane.dataplaneconfig.dpdk.Vdev) Configs for a software cryptodev |
uio-driver | string (netgate.dataplane.UioDriverT) Enum: "igb_uio" "uio_pci_generic" "vfio-pci" |
dev | Array of objects (netgate.dataplane.dataplaneconfig.dpdk.Dev) Configs for a NIC or crypto device |
no-tx-checksum-offload | boolean Disable transmit checksum offload. |
Object created
Internal error
Object already exists
Example URL
dpdk stanza
netgate.dataplane.dataplaneconfig.Dpdk to be added or updated
netgate-dataplane:dpdk | object (netgate.dataplane.dataplaneconfig.Dpdk) |
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/netgate-dataplane: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
Configs for a NIC or crypto device
netgate.dataplane.dataplaneconfig.dpdk.Dev to be added to list
num-tx-queues | integer <int32> Number of transmit queues. |
device-type | string (netgate.dataplane.DeviceTypeT) Enum: "network" "crypto" |
num-rx-queues | integer <int32> Number of receive queues. |
id | string The PCI ID for a device or 'default'. |
vlan-strip-offload | string VLAN strip offload on/off |
present | boolean Device enabled, no attributes necessarily set |
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/netgate-dataplane:dpdk/netgate-dataplane: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 to list
num-tx-queues | integer <int32> Number of transmit queues. |
device-type | string (netgate.dataplane.DeviceTypeT) Enum: "network" "crypto" |
num-rx-queues | integer <int32> Number of receive queues. |
id | string The PCI ID for a device or 'default'. |
vlan-strip-offload | string VLAN strip offload on/off |
present | boolean Device enabled, no attributes necessarily set |
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 to be added or updated
netgate-dataplane:dev | object (netgate.dataplane.dataplaneconfig.dpdk.Dev) |
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/netgate-dataplane:dpdk/netgate-dataplane: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
Configs for a software cryptodev
netgate.dataplane.dataplaneconfig.dpdk.Vdev to be added to list
vdev-type | string (netgate.dataplane.VdevTypeT) Enum: "aesni_mb" "aesni_gcm" |
Object created
Internal error
Object already exists
Example URL
Configs for a software cryptodev
vdev-type required | string Id of vdev |
netgate.dataplane.dataplaneconfig.dpdk.Vdev
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:dpdk/netgate-dataplane:vdev=%7Bvdev-type%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 software cryptodev
vdev-type required | string Id of vdev |
netgate.dataplane.dataplaneconfig.dpdk.Vdev to be added to list
vdev-type | string (netgate.dataplane.VdevTypeT) Enum: "aesni_mb" "aesni_gcm" |
Object created
Internal error
Object already exists
Example URL
Configs for a software cryptodev
vdev-type required | string Id of vdev |
netgate.dataplane.dataplaneconfig.dpdk.Vdev to be added or updated
netgate-dataplane:vdev | object (netgate.dataplane.dataplaneconfig.dpdk.Vdev) |
Object created
Object modified
Internal error
Example URL
Configs for a software cryptodev
vdev-type required | string Id of vdev |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:dpdk/netgate-dataplane:vdev=%7Bvdev-type%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
IPv4 settings
netgate.dataplane.dataplaneconfig.Ip
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:ip" 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
IPv4 settings
netgate.dataplane.dataplaneconfig.Ip to be added to list
heap-size | string Size of heap for IPv4 FIB. Should be a number. Optionally followed by a specified of k, m, or g, to indicate kilo, mega, or giga bytes. |
Object created
Internal error
Object already exists
Example URL
IPv4 settings
netgate.dataplane.dataplaneconfig.Ip to be added or updated
netgate-dataplane:ip | object (netgate.dataplane.dataplaneconfig.Ip) |
Object created
Object modified
Internal error
Example URL
IPv4 settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:ip" 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/netgate-dataplane: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
heap-size | string Size of heap for IPv6 FIB. Should be a number. Optionally followed by a specified of k, m, or g, to indicate kilo, mega, or giga bytes. |
hash-buckets | integer <int64> Number of hash buckets for IPv6 lookup table. |
Object created
Internal error
Object already exists
Example URL
IPv6 settings
netgate.dataplane.dataplaneconfig.Ip6 to be added or updated
netgate-dataplane:ip6 | object (netgate.dataplane.dataplaneconfig.Ip6) |
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/netgate-dataplane: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
global NAT settings
netgate.dataplane.dataplaneconfig.Nat
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat" 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
global NAT settings
netgate.dataplane.dataplaneconfig.Nat to be added to list
max-translations-per-user | integer <int32> max translations per user |
nat-mode | string (netgate.dataplane.NatModeT) Enum: "simple" "deterministic" "endpoint-dependent" |
dslite-ce | boolean dslite ce |
mode-options | object (netgate.dataplane.dataplaneconfig.nat.ModeOptions) |
Object created
Internal error
Object already exists
Example URL
global NAT settings
netgate.dataplane.dataplaneconfig.Nat to be added or updated
netgate-dataplane:nat | object (netgate.dataplane.dataplaneconfig.Nat) |
Object created
Object modified
Internal error
Example URL
global NAT settings
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat" 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.nat.ModeOptions
netgate.dataplane.dataplaneconfig.nat.ModeOptions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat/netgate-dataplane:mode-options" 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.nat.ModeOptions
netgate.dataplane.dataplaneconfig.nat.ModeOptions to be added to list
simple | object (netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.dataplane.dataplaneconfig.nat.ModeOptions
netgate.dataplane.dataplaneconfig.nat.ModeOptions to be added or updated
netgate-dataplane:mode-options | object (netgate.dataplane.dataplaneconfig.nat.ModeOptions) |
Object created
Object modified
Internal error
Example URL
removes netgate.dataplane.dataplaneconfig.nat.ModeOptions
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat/netgate-dataplane:mode-options" 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.nat.modeoptions.Simple
netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat/netgate-dataplane:mode-options/netgate-dataplane:simple" 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.nat.modeoptions.Simple
netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple to be added to list
out2in-dpo | boolean out2in dpo |
static-mapping-only | boolean static mapping only |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple
netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple to be added or updated
netgate-dataplane:simple | object (netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple) |
Object created
Object modified
Internal error
Example URL
removes netgate.dataplane.dataplaneconfig.nat.modeoptions.Simple
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dataplane:dataplane-config/netgate-dataplane:nat/netgate-dataplane:mode-options/netgate-dataplane:simple" 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
creates netgate.dataplane.DataplaneControl
input | object (netgate.dataplane.dataplanecontrol.Input) |
Correct response
No response
Internal error