# oscars-topology-json **Repository Path**: mirrors_esnet/oscars-topology-json ## Basic Information - **Project Name**: oscars-topology-json - **Description**: Publishes the OSCARS NMWG topology and list of circuits in a JSON format - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 ```