Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/electrocucaracha/vfw-demo
ONAP vFirewall Use Case
https://github.com/electrocucaracha/vfw-demo
demo nfv onap
Last synced: 8 days ago
JSON representation
ONAP vFirewall Use Case
- Host: GitHub
- URL: https://github.com/electrocucaracha/vfw-demo
- Owner: electrocucaracha
- Created: 2018-07-27T16:07:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T16:29:33.000Z (20 days ago)
- Last Synced: 2024-10-25T23:13:42.063Z (18 days ago)
- Topics: demo, nfv, onap
- Language: Shell
- Homepage:
- Size: 274 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vFirewall ONAP Use Case
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)This use case is composed of three virtual functions (VFs) running in
separate Ubuntu Virtual Machines:* [Packet generator](packetgen.sh): Sends packets to the packet sink through the
firewall. This includes a script that periodically generates different
volumes of traffic.
* [Firewall](firewall.sh): Reports the volume of traffic passing though to the
ONAP DCAE collector.
* [Traffic sink](sink.sh): Displays the traffic volume that lands at the sinkVM using the link through your browser
and enable automatic page refresh by clicking the "Off" button. You
can see the traffic volume in the charts.![Diagram](diagram.png)
## Adjust packet generator
The packet generator contains 10 streams: fw\_udp1, fw\_udp2,
fw\_udp3, . . . , fw\_udp10. Each stream generates 100 packets every
10 seconds. The */opt/run\_traffic\_fw\_demo.sh* script on the packet
generator VM starts automatically and alternates high traffic (i.e.
10 active streams at the same time) and low traffic (1 active stream)
every 5 minutes.To enable a stream, include `{"id":"fw_udp1", "is-enabled":"true"}`
in the *pg-stream* bracket.To adjust the traffic volume produced by the packet generator, run the
following command in a shell:```bash
curl -X PUT \
-H "Authorization: Basic YWRtaW46YWRtaW4=" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-d '{"pg-streams":{"pg-stream": [{"id":"fw_udp1", "is-enabled":"true"},{"id":"fw_udp2", "is-enabled":"true"},{"id":"fw_udp3", "is-enabled":"true"},{"id":"fw_udp4", "is-enabled":"true"},{"id":"fw_udp5", "is-enabled":"true"}]}}' \
"http://192.168.10.200:8183/restconf/config/sample-plugin:sample-plugin/pg-streams"
```The command above enables 5 streams.