Commit bc128f8b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - SIMAP Server

- Added missing startup.json file
- Added pre-load of data in startup.json
parent eef0f4e7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
# limitations under the License.


import logging
import json, logging
from flask import Flask
from flask_restful import Api
from .Dispatch import RestConfDispatch
@@ -32,7 +32,10 @@ YANG_MODULE_NAMES = [
    'ietf-network-topology',
    'ietf-network',
]
YANG_STARTUP_DATA = {}

STARTUP_FILE = './startup.json'
with open(STARTUP_FILE, mode='r', encoding='UTF-8') as fp:
    YANG_STARTUP_DATA = json.loads(fp.read())

logging.basicConfig(level=logging.INFO)
LOGGER = logging.getLogger(__name__)
+1 −0
Original line number Diff line number Diff line
{}