diff --git a/README.rst b/README.rst index 2d04ccc..73af214 100755 --- a/README.rst +++ b/README.rst @@ -118,13 +118,15 @@ Routing Protocol Routes **Example**: `network-topology-example.json`_ -A ``routing_protocol`` object must define the following members: +A ``Network Routes`` object must have a member with the name ``type`` and value ``NetworkRoutes``. -* ``name``: a string which indicates the routing protocol name +It must also define the following members: + +* ``routing_protocol`` the name of the routing protocol * ``routing_metric``: a string which indicates the name of main routing metric used by the routing protocol to determine the best routes when sending packets * ``routes``: an array containing a list of routes -A ``route`` object must define the following members: +Each ``route`` object must define the following members: * ``destination``: a string indicating the ip address, prefix or mac address that will be matched to the destination of the traffic * ``next``: a string indicating the ip address, prefix or mac address of the next hop diff --git a/network-topology-example.json b/network-topology-example.json index 63d45fc..3c5888e 100755 --- a/network-topology-example.json +++ b/network-topology-example.json @@ -1,19 +1,14 @@ { - "meta": { - "type": "topology", - "version": 0 - }, - "routing_protocol": { - "name": "NAME", - "routing_metric": "METRIC", - "routes": [ - { - "destination": "ID", - "source": "ID", - "next" : "ID", - "device": "DEVICE", - "cost": 1 - } - ] - } + "type": "NetworkRoutes", + "routing_protocol": "PROTOCOL-NAME", + "routing_metric": "PROTOCOL-METRIC", + "routes": [ + { + "destination": "ID", + "source": "ID", + "next" : "ID", + "device": "DEVICE", + "cost": 1 + } + ] }