https://github.com/esnet/oscars-topology-json
Publishes the OSCARS NMWG topology and list of circuits in a JSON format
https://github.com/esnet/oscars-topology-json
Last synced: 9 months ago
JSON representation
Publishes the OSCARS NMWG topology and list of circuits in a JSON format
- Host: GitHub
- URL: https://github.com/esnet/oscars-topology-json
- Owner: esnet
- License: other
- Created: 2014-06-13T14:20:10.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T14:54:40.000Z (about 12 years ago)
- Last Synced: 2025-09-05T05:49:14.190Z (10 months ago)
- Language: Python
- Homepage:
- Size: 176 KB
- Stars: 2
- Watchers: 26
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OSCARS JSON Topology Publisher
==============================
This project shares the OSCARS NMWG topology and circuit list as a JSON file.
System Requirements
-------------------
* CentOS 6 or newer
* Python 2.6 or newer
* OSCARS 0.6 or newer
Installing
----------
1. Checkout the project from git
```
git clone https://github.com/esnet/oscars-topology-json.git ./oscars-topology-json
```
2. Move to */opt/topology_publisher*
```
mv oscars-topology-json /opt/topology_publisher
```
3. Edit database and XML file properties in *bin/topology_publisher.py*
```python
class EomplsIDRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
dbhost='localhost' #database host
dbuser='oscars' #database user
dbpass='mypass' #database password
dbname='eomplspss' #don't change
rmdbname='rm' #don't change
xml_files = [ #NMWG files to publish
"/opt/topology_publisher/topologies/esnet-cp.xml",
"/opt/topology_publisher/topologies/esnet-ps.xml"
]
```
4. Install the start-up scripts
```
mv init_scripts/topology_publisher /etc/init.d/topology_publisher
```
5. Set to boot on start-up
```
chkconfig --add topology_publisher
chkconfig topology_publisher on
```
Running
-------
###Starting the service
```
/etc/init.d/topology-publisher start
```
###Stopping the service
```
/etc/init.d/topology-publisher stop
```
###Restarting the service
```
/etc/init.d/topology-publisher restart
```
###Checking if service is running
```
/etc/init.d/topology-publisher status
```