Hi Håvard, Sorry for the delay.
Could you share log messages of your ryu-manager with "--verbose" option? On my environment(Ubuntu 16.04 and Quagga via apt-get), "sample_dumper.py" should work. # /etc/quagga/daemons ...(snip) zebra=no bgpd=no ospfd=yes ...(snip) # /etc/quagga/ospfd.conf (Just copy of /usr/share/doc/quagga/examples/ospfd.conf.sample) ! -*- ospf -*- ! ! OSPFd sample configuration file ! ! hostname ospfd password zebra !enable password please-set-at-here ! !router ospf ! network 192.168.1.0/24 area 0 ! log stdout # Run Ryu Application $ ryu-manager ryu/services/protocols/zebra/server/sample_dumper.py --verbose ... # Start Quagga (OSPF) daemon $ sudo service quagga start # ryu-manager should output Registered VCS backend: git Registered VCS backend: hg Registered VCS backend: svn Registered VCS backend: bzr loading app ryu/services/protocols/zebra/server/sample_dumper.py instantiating app None of ZServer creating context zserver instantiating app ryu/services/protocols/zebra/server/sample_dumper.py of ZServerDumper BRICK ZServer PROVIDES EventZebraIPv4RouteAdd TO {'ZServer': set(), 'ZServerDumper': set()} PROVIDES EventZClientConnected TO {'ZServerDumper': set()} PROVIDES EventZebraIPv6RouteDelete TO {'ZServer': set(), 'ZServerDumper': set()} PROVIDES EventZebraIPv6RouteAdd TO {'ZServer': set(), 'ZServerDumper': set()} PROVIDES EventZebraInterfaceAdd TO {'ZServer': set()} PROVIDES EventZebraHello TO {'ZServer': set()} PROVIDES EventZClientDisconnected TO {'ZServerDumper': set()} PROVIDES EventZebraRouterIDAdd TO {'ZServer': set()} PROVIDES EventZebraIPv4RouteDelete TO {'ZServer': set(), 'ZServerDumper': set()} CONSUMES EventZebraIPv4RouteAdd CONSUMES EventZebraIPv6RouteDelete CONSUMES EventZebraIPv6RouteAdd CONSUMES EventZebraInterfaceAdd CONSUMES EventZebraHello CONSUMES EventZebraRouterIDAdd CONSUMES EventZebraIPv4RouteDelete BRICK ZServerDumper CONSUMES EventZClientDisconnected CONSUMES EventZClientConnected CONSUMES EventZebraIPv6RouteDelete CONSUMES EventZebraIPv6RouteAdd CONSUMES EventZebraIPv4RouteAdd CONSUMES EventZebraIPv4RouteDelete Added interface "lo": Interface(inet6='::1/128', inet='127.0.0.1/8', ifname='lo') Added route to "127.0.0.0/8": Route(safi=1, family=<AddressFamily.AF_INET: 2>, is_selected=True, source='127.0.0.1/8', destination='127.0.0.0/8', route_type=2, gateway='', ifindex=1) Connected from client: b'': <eventlet.greenio.base.GreenSocket object at 0x7f6da742d550> EVENT ZServer->ZServerDumper EventZClientConnected Notify event: EventZebraHello(zclient=<ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438>, version=2, length=7, command=23, vrf_id=0, body=ZebraHello(route_type=6)) EVENT ZServer->ZServer EventZebraHello Notify event: EventZebraRouterIDAdd(zclient=<ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438>, version=2, length=6, command=20, vrf_id=0, body=None) EVENT ZServer->ZServer EventZebraRouterIDAdd Notify event: EventZebraInterfaceAdd(zclient=<ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438>, version=2, length=6, command=1, vrf_id=0, body=None) EVENT ZServer->ZServer EventZebraInterfaceAdd Zebra client connected: b'' Client <ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438> says hello and bids fair to announce only 6 routes Client <ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438> requests router_id, server will response: router_id=1.1.1.1 Zebra protocol version mismatch:server_version=2, msg.version=3 Client <ryu.services.protocols.zebra.server.zserver.ZClient object at 0x7f6da742d438> requested all interfaces Server will response interfaces: [Interface(ifname='lo', inet='127.0.0.1/8', ll_type=1, status=5, hw_addr='00:00:00:00:00:00', metric=1, flags=73, inet6='::1/128', bandwidth=0, ifmtu6=65536, ifindex=1, ifmtu=65536)] Zebra protocol version mismatch:server_version=2, msg.version=3 Server will response routes: [Route(safi=1, family=2, is_selected=True, source='127.0.0.1/8', gateway='', destination='127.0.0.0/8', ifindex=1, route_type=2, id=1)] Zebra protocol version mismatch:server_version=2, msg.version=3 > The API daemon is '/var/run/quagga/zebrar3.api' In order to change the path to API unix domain socket, you can use "--zapi-server-host" option. Thanks, Iwase On 2017年05月06日 04:30, Håvard Magne Fagervoll wrote: > Hello, > > I a working with the zebra API and want to connect to an OSPF daemon running > on my local machine. I am currently testing with > "ryu/services/protocols/zebra/server/sample_dumper.py" and I am trying to > edit the "flags.py" file in the root ryu folder to correctly connect to my > daemon, but it's not really working. > > I am running ubuntu 14.04. > The API daemon is '/var/run/quagga/zebrar3.api' > It is running OSPF > The router ID is '10.1.100.3'. > > How can I set up the config correctly? > > Thank you. > Best regards > Håvard > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel