Skip to content

Commit

Permalink
Simplified network-topology-example.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Nov 25, 2014
1 parent 10f69c7 commit d24486c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
8 changes: 5 additions & 3 deletions README.rst
Expand Up @@ -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
Expand Down
29 changes: 12 additions & 17 deletions 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
}
]
}

0 comments on commit d24486c

Please sign in to comment.