This project is an Andriod app that scans a device's Serial Number and provides insights into the device. It also has a middleware app that is the interface to a DNA Center instance.
- A network operator will be able to quickly identify a device by its inventory information without having to loggging into its terminal or a management station that might manage it.
- The user will know the sync status of the device and the DNA Center.
- Frontend Mobile App
-
Install nodejs and npm
-
Install ionic using: https://ccoenraets.github.io/ionic-tutorial/install-ionic.html
-
Add android platform support:
ionic cordova add platform android
-
Compile
cd frontend/devScan/
npm install
ionic cordova build android --debug
- Middleware installation
-
Create a python virtualenv and activate it
-
Install requirements
pip install -r requirements.txt
- Running the middleware
-
Setup local environment variables for your DNA Center in the file middleware/dnac_instance.conf. Provide the info for your DNA Center
-
Update host-IP on line #27 of middleware/app.py
-
Start the server
python middleware/app.py
- Open the Android app and provide the middleware host-IP on the onboarding screen
- Scan the serial number of a device