https://github.com/xmidt-org/parodus2mocktr181
A mock implementation of TR-181 objects through Parodus
https://github.com/xmidt-org/parodus2mocktr181
Last synced: about 2 months ago
JSON representation
A mock implementation of TR-181 objects through Parodus
- Host: GitHub
- URL: https://github.com/xmidt-org/parodus2mocktr181
- Owner: xmidt-org
- License: apache-2.0
- Created: 2016-08-15T20:17:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T17:30:41.000Z (over 4 years ago)
- Last Synced: 2025-03-23T12:32:54.548Z (2 months ago)
- Language: C
- Homepage:
- Size: 283 KB
- Stars: 2
- Watchers: 21
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# parodus2mockTr181
Simple interface provide a mock TR-181 object model
[](https://travis-ci.org/Comcast/parodus2mockTr181)
[](http://codecov.io/github/Comcast/parodus2mockTr181?branch=master)
[]("https://scan.coverity.com/projects/comcast-parodus2mockTr181)
[](https://github.com/Comcast/parodus2mockTr181/blob/master/LICENSE.txt)# Building and Testing Instructions
```
mkdir build
cd build
cmake ..
make
make test
```# To Test the parodus2mockTr181:
```
1. Run parodus as stand alone. e.g.~$ sudo ./parodus --hw-model=TGXXX --hw-serial-number=E8GBUEXXXXXXXXX --hw-manufacturer=ARRIS --hw-mac=aabbcc123456 --hw-last-reboot-reason=unknown --fw-name=TG1682_DEV_master_2017xxxxxxxxsdy --boot-time=1494590301 --webpa-ping-time=180 --webpa-interface-used= --webpa-url= --webpa-backoff-max=9 --parodus-local-url=tcp://127.0.0.1:6666 --partner-id=xxxxxx --ssl-cert-path=/etc/ssl/certs/ca-certificates.crt --webpa-token=/usr/ccsp/parodus/parodus_token.sh --force-ipv4 --secure-flag=https --port=8080
2. Run parodus2mockTr181 as stand alone. e.g.
~$ ./mock_tr181
3. Issue curl commands to test. e.g.
~$ curl -H "Authorization: Bearer $WEBPA_SAT" https://xxx.yyy.zzz:ppp/api/v2/device/mac:aabbcc123456/config?names=Device.Hosts.Host.1.Name,Device.Hosts.Host.1.MAC,Device.Hosts.Host.2.Name,Device.Hosts.Host.2.MAC
```