commit | aca03cf7acc613a98904a7d3e54e163ffc902d04 | [log] [tgz] |
---|---|---|
author | Joey Armstrong <jarmstrong@linuxfoundation.org> | Tue Apr 23 09:29:52 2024 -0400 |
committer | Eric Ball <eball@linuxfoundation.org> | Fri Sep 13 17:08:46 2024 -0700 |
tree | 62c89c4dd050765b161103c677dcba6884808cbf | |
parent | ec895f87f4ab78b790c18e010c75ae631c7a3152 [diff] |
[VOL-5346] Update copyright notice, gather profiling stats. [See Also] https://gerrit.opencord.org/c/voltha-go-controller/+/35217 o No jira ticket available yet so reference gerrit patch. VERSION ------- o Bump version string for the patch. database/database.go internal/pkg/application/application.go internal/pkg/application/service.go internal/pkg/util/envutils/envutils.go tests/results/go-test-coverage.out tests/results/go-test-coverage.xml tests/results/go-test-results.xml voltha-go-controller/nbi/bwprofile.go voltha-go-controller/nbi/igmpproxy.go voltha-go-controller/nbi/mvlan.go --------------------------------------- o Update copyright notice to contain SPDX tokens and span 2024. o This patch is submitted for side effects, generate comparison stats. o Patch 35217 failed make sca/profiling phase due to a timeout. o Copyright edits will run a NOP version of the original patch to determine if the timeout is pre-existing or new behavior. Change-Id: I7f63613c71c8a4eee80ad5d6332810dc9b5b361c Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org> Signed-off-by: Eric Ball <eball@linuxfoundation.org>
+--------------------------+------------+--------------------------+ | | NBI (REST) | | | +------------+ | | | | Voltha-Go-Controller +--------+ | | | VGCCTL | | | +------------------------------------------+ +--------+ | | | Applications | | | +------------------------------------------+ +---------+ | | | NB | | | +------------------------------------------+ | HANDLER | | | | Controller | +---------+ | | +------------------------------------------+ | | +---------+ | | +------------------------------------------+ | DB | | | | VPAgent | | HANDLER | | | +------------------------------------------+ | (Redis) | | | +---------+ | +------------------------------------------------------------------+ | | gRPC | +------------------------------------------+ | | | Voltha | | | +------------------------------------------+
curl --request POST -H Content-Type:application/json http://$VGC_POD_IP:8181/profiles/service1 -d @addbw.json addbw.json: { "id": "High-Speed-Internet", "gir": 50000, "cbs": 10000, "cir": 50000, "pbs": 1000, "pir": 300000 }
curl --request POST -H Content-Type:application/json http://$VGC_POD_IP:8181/subscribers/service1 -d @addsub.json addsub.json { "id": "service1", "nasPortId": "XXXX429d750e-1", "uniTagList": [ { "uniTagMatch": 4096, "ponCTag": 4096, "ponSTag": 140, "technologyProfileId": 64, "downstreamBandwidthProfile": "High-Speed-Internet", "upstreamBandwidthProfile": "High-Speed-Internet" } ] }
curl --request DELETE http://$VGC_POD_IP:8181/subscribers/service1
device : Lists Device Info group : Lists configured Groups vnet : Lists configured VNET profiles tasklist : Lists TaskList igmp : Displays current IGMP configuration mcast : Displays current MCAST configuration flows : Lists configured flows service : Lists configured services mvlan : Lists configured MVLANs dhcpsession : Lists DHCP Session Info port : Lists all the logical ports igmpgroup : Lists configured IGMP Groups meter : Lists all the meter profiles vpvs : Lists configured vpvs igmpchannel : Lists configured IGMP channels igmpport : Lists configured IGMP ports igmpdevice : Lists configured IGMP devices
Use the package manager pip to install foobar.
Compatible goLang version: go1.16.3 Compatible Redis version: github.com/go-redis/redis/v8 v8.3.4
build : Build voltha-go-controller image clean : Removes any local filesystem artifacts generated by a build help : Print help for each Makefile target lint-dockerfile : Perform static analysis on Dockerfile lint : Run all lint targets lint-mod : Verify the Go dependencies local-lib-go : Copies a local version of the voltha-lib-go dependency into the vendor directory local-protos : Copies a local version of the voltha-protos dependency into the vendor directory mod-update : Update go mod files sca : Runs static code analysis with the golangci-lint tool test : Run unit tests
Clone "voltha-go-controller" cd voltha-go-controller go mod vendor make clean; make build
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.