[ninux-dev] Fwd: Re: Network Topology JSON [was: OLSRd2 JSON APIs]

Nemesis nemesis at ninux.org
Tue Nov 18 12:35:31 CET 2014


Risposta di henning.
Che ne pensate?


-------- Original Message --------
Subject: 	Re: Network Topology JSON [was: OLSRd2 JSON APIs]
Date: 	Sun, 16 Nov 2014 13:38:42 +0100
From: 	Henning Rogge <hrogge at gmail.com>
To: 	Nemesis <nemesis at ninux.org>
CC: 	interop-dev at lists.funkfeuer.at



On Sat, Nov 15, 2014 at 3:08 PM, Nemesis <nemesis at ninux.org> wrote:
> Hey Henning,
>
> On 11/10/2014 07:48 PM, Henning Rogge wrote:
>> I think the lowest common denominator would be a list of supplied
>> routing entries together with some dimensionless "cost" value. And a
>> list of known links/neighbors with their attached cost value.
>
> Could you write an example of this?
>
> Like:
>
> {
>     "type": "OLSR1",
>     "topology": [
>         { "last": "<ip>", "destination": "<ip>",  "cost": "<value>" }
>     ]
> }

{
    "type": "OLSR1",
    "route" : [
        {
            "destination": "<ip/prefix>",
            "source": "<ip/prefix>",
            "next" : "<ip>",
            "device": "<dev>",
            "cost": "<value>",
        }
    ]
}

destination is the IP or prefix that will be matched to the IP
destination of the traffic, source is the same (optional) for the IP
source (necessary for source-specific routing). next is the IP of the
next hop, device is the interface the traffic will be going to and
cost an integer number greater or equal zero.

Henning Rogge



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/ninux-dev/attachments/20141118/fef4ec98/attachment-0001.html>


More information about the ninux-dev mailing list