<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
        Arial, sans-serif"><font face="Helvetica, Arial, sans-serif">Risposta
          di henning.</font></font></font><br>
    Che ne pensate?<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Original Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: Network Topology JSON [was: OLSRd2 JSON APIs]</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Sun, 16 Nov 2014 13:38:42 +0100</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Henning Rogge <a class="moz-txt-link-rfc2396E" href="mailto:hrogge@gmail.com"><hrogge@gmail.com></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td>Nemesis <a class="moz-txt-link-rfc2396E" href="mailto:nemesis@ninux.org"><nemesis@ninux.org></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:interop-dev@lists.funkfeuer.at">interop-dev@lists.funkfeuer.at</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>On Sat, Nov 15, 2014 at 3:08 PM, Nemesis <a class="moz-txt-link-rfc2396E" href="mailto:nemesis@ninux.org"><nemesis@ninux.org></a> 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
</pre>
      <br>
    </div>
    <br>
  </body>
</html>