It seems like maybe the string is too long and it's getting truncated.

{"type":"lavi","link_type":"sw2sw","links":[{"src id":"e840026f140a800","dst
port":"33","dst id":"e84002347c8bc00","dst type":"switch","src
type":"switch","src port":"32"},{"src id":"e840026f140a800","dst
port":"33","dst id":"e840024a8d24800","dst type":"switch","src
type":"switch","src port":"33"},{"src id":"e83002347c8bc00","dst
port":"3","dst id":"6d60012e2b8a5d0","dst type":"switch","src
type":"switch","src port":"31"},{"src id":"e83002347c8bc00","dst
port":"32","dst id":"e830024a8d2b840","dst type":"switch","src
type":"switch","src port":"32"},{"src id":"e83002347c8bc00","dst
port":"33","dst id":"6d60021f7be8d00","dst type":"switch","src
type":"switch","src port":"12"},{"src id":"e83002347c8bc00","dst
port":"32","dst id":"e830026f140a800","dst type":"switch","src
type":"switch","src port":"33"},{"src id":"e830024a8d24800","dst
port":"33","dst id":"e830026f140a800","dst type":"switch","src
type":"switch","src port":"33"},{"src id":"e84002347c8bc00","dst
port":"5","dst id":"6d60012e2b8a5d0","dst type":"switch","src
type":"switch","src port":"31"},{"src id":"e84002347c8bc00","dst
port":"32","dst id":"e840026f140a800","dst type":"switch","src
type":"switch","src port":"33"},{"src id":"e84002347c8bc00","dst
port":"35","dst id":"6d60021f7be8d00","dst type":"switch","src
type":"switch","src port":"14"},{"src id":"000000000007","dst
port":"1a","dst id":"6d60024a8c4b900","dst type":"switch","src
type":"switch","src port":"1"},{"



On Wed, Sep 21, 2011 at 12:49 AM, kk yap <yap...@stanford.edu> wrote:

> Seems like an invalid JSON string is being returned.  See what you get
> when you print sock.recv(4096).
>
> Regards
> KK
>
> On 20 September 2011 21:13, Aaron Rosen <aro...@clemson.edu> wrote:
> > Thanks kk,
> > Quick question, I'm getting the following error with getlinks any idea?
> >  getnodes works fine though.
> > arosen@laptop ~/devel/nox/src/scripts $ python nox-console.py  -n
> awesome -p
> > 11222  getlinks
> > Traceback (most recent call last):
> >   File "nox-console.py", line 104, in <module>
> >     print simplejson.dumps(simplejson.loads(sock.recv(4096)), indent=4)
> >   File "/usr/lib64/python2.7/site-packages/simplejson/__init__.py", line
> > 385, in loads
> >     return _default_decoder.decode(s)
> >   File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line
> 402,
> > in decode
> >     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >   File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line
> 418,
> > in raw_decode
> >     obj, end = self.scan_once(s, idx)
> > ValueError: end is out of bounds
> >
> >
> >
> > On Wed, Sep 21, 2011 at 12:00 AM, kk yap <yap...@stanford.edu> wrote:
> >>
> >> Hi Aaron,
> >>
> >> LAVI in the zaku branch uses a new JSON format and a different port.
> >> nox-gui.py in the destiny branch is another example.  More is said
> >> here:
> >>
> >> http://www.openflow.org/wk/index.php/LAVI
> >>
> >> Regards
> >> KK
> >>
> >> On 20 September 2011 15:09, Aaron Rosen <aro...@clemson.edu> wrote:
> >> > Hello,
> >> > I was thinking about writing a front end that could integrate with
> Lavi
> >> > (the
> >> > way envi does). Right now I'm just playing around with them. Anyone
> know
> >> > how
> >> > to run lavi and connect envi? I tired doing ./nox_core -i ptcp:6633
> lavi
> >> > but envi keeps telling me that it cannot connect.
> >> > If i do ./nox_core  -i ptcp:6633  jsonmessenger=tcpport=2503 lavi
> >> > I get a json syntax error from nox.
> >> > Thanks,
> >> > Aaron
> >> >
> >> > --
> >> > Aaron O. Rosen
> >> > Masters Student - Network Communication
> >> > 306B Fluor Daniel
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > nox-dev mailing list
> >> > nox-dev@noxrepo.org
> >> > http://noxrepo.org/mailman/listinfo/nox-dev
> >> >
> >> >
> >
> >
> >
> > --
> > Aaron O. Rosen
> > Masters Student - Network Communication
> > 306B Fluor Daniel
> >
> >
> >
>



-- 
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to