To follow up on my own e-mail I should point out that I looked at the
documentation in routing.cc:
// Main API method. Given a FullRoute struct with the 'id', src access
// point port 'inport', and dst access point port 'outport' set,
fills in
// 'route' with the route between the two datapaths. Returns 'true' if
// successful, else 'false'. Returns 'false' when either no route
between
// the two datapaths exists, or the access point ports cause for a
packet
// to be sent out on the same port it was received on (error!)
When would "the access point ports cause for a packet to be sent out on
the same port it was received on (error!)"?
Glen Gibb wrote:
> Hi all,
>
> Perhaps I'm misunderstanding the get_route event but I'm getting error
> messages like the following at times:
> 00008|routing|ERR:Invalid route between aps 1731efa639:3 and
> 1731ed8d28:0 (inport == outport)
>
> Can someone clarify what this error means? As far as I can tell this
> error doesn't make sense for the scenario in which I'm trying to use it.
> I have three OF switches connected effectively in a line -- the two aps
> listed above are on opposite ends of this line.
>
>
> Also, looking through the examples for sample code I saw the following
> in pyunittests/routing_test.py:
> def post_events(self):
> e = Link_event(netinet.datapathid.from_host(2),
> netinet.datapathid.from_host(3),
> 0, 0, Link_event.ADD)
> self.post(e)
> e = Link_event(netinet.datapathid.from_host(1),
> netinet.datapathid.from_host(2),
> 0, 1, Link_event.ADD)
> self.post(e)
> self.d = defer.Deferred()
> return self.d
>
> def handle_link_event(self, event):
> if self.n_received == 0:
> self.n_received = 1
> return CONTINUE
>
> route = pyrouting.PyFullRoute()
> route.id.src = src = netinet.datapathid.from_host(1)
> route.id.dst = dst = netinet.datapathid.from_host(3)
> route.inport = route.outport = 1
>
> if not self.routing.get_route(route):
>
> Reading the above I would have thought that 1 and 3 would have been
> connected on port 0, but in the get_route it looks like you're querying
> from port 1?
>
>
>
> Thanks,
> Glen
>
> _______________________________________________
> nox-dev mailing list
> [email protected]
> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
>
>
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org