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)) }