Gautam Pathak | 7 Jul 16:55 2015
Picon

Hang for long while running app.

Hi I am trying to run the simple_switch.py.
as given in the tutorial I gave the following command:

PYTHONPATH=. ./bin/ryu-manager ryu/app/simple_switch.py

It starting working and give following

loading app ryu/app/simple_switch.py
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler of OFPHandler
instantiating app ryu/app/simple_switch.py of SimpleSwitch

then halt here for long not giving any other result.

I abnormally terminate it and run again,
It gives the following:

mininet <at> mininet-VirtualBox:~/ryu$ PYTHONPATH=. ./bin/ryu-manager ryu/app/simple_switch.py
loading app ryu/app/simple_switch.py
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler of OFPHandler
instantiating app ryu/app/simple_switch.py of SimpleSwitch
hub: uncaught exception: Traceback (most recent call last):
File "/home/mininet/ryu/ryu/lib/hub.py", line 52, in _launch
func(*args, **kwargs)
File "/home/mininet/ryu/ryu/controller/controller.py", line 71, in __call__
self.server_loop()
File "/home/mininet/ryu/ryu/controller/controller.py", line 94, in server_loop
datapath_connection_factory)
File "/home/mininet/ryu/ryu/lib/hub.py", line 108, in __init__
self.server = eventlet.listen(listen_info)
File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 38, in listen
sock.bind(addr)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

I have no idea what is going on. Please give some suggestion.



Best regards,
Goutam
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Jia Leon | 7 Jul 15:46 2015
Picon

Can we using ryu to modify the vlan id on the openvswitch port?

Hi
 I'm a newbie in Ryu and OpenFlow development, Just now I'm concerning about a way to modify the openvswitch's port vlan id using ryu so that I can make a dynamic network. All replies will be thankful.


__________
Jia Leon
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Gautam Pathak | 7 Jul 14:28 2015
Picon

ryu instalation error

Hi,

I am getting the following errors during Ryu controller installation. I am not getting how to resolve this.

Installed /home/mininet/ryu/pbr-0.11.0-py2.7.egg
running install
Downloading/unpacking eventlet>=0.15
  Downloading eventlet-0.17.4-py2.py3-none-any.whl (136kB): 136kB downloaded
Requirement already satisfied (use --upgrade to upgrade): msgpack-python>=0.3.0 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): netaddr in /usr/local/lib/python2.7/dist-packages
Downloading/unpacking oslo.config>=1.6.0
  Downloading oslo.config-1.14.0-py2.py3-none-any.whl (69kB): 69kB downloaded
Requirement already satisfied (use --upgrade to upgrade): routes in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.0 in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): webob>=1.2 in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.3 in /usr/lib/python2.7/dist-packages (from eventlet>=0.15)
Requirement already satisfied (use --upgrade to upgrade): stevedore>=1.5.0 in /usr/local/lib/python2.7/dist-packages (from oslo.config>=1.6.0)
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from oslo.config>=1.6.0)
Requirement already satisfied (use --upgrade to upgrade): repoze.lru>=0.3 in /usr/lib/python2.7/dist-packages (from routes)
Installing collected packages: eventlet, oslo.config
  Found existing installation: eventlet 0.13.0
    Not uninstalling eventlet at /usr/lib/python2.7/dist-packages, owned by OS
  Can't roll back eventlet; was not uninstalled
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 200, in clobber
    shutil.move(srcfile, destfile)
  File "/usr/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/eventlet-0.17.4.dist-info/RECORD'

Storing debug log for failure in /home/mininet/.pip/pip.log
error: ['/usr/bin/python', u'-m', u'pip.__init__', u'install', u'eventlet>=0.15', u'msgpack-python>=0.3.0  # RPC library, BGP speakernet_cntl', u'netaddr', u'oslo.config>=1.6.0', u'routes  # wsgi', u'six>=1.4.0', u'webob>=1.2  # wsgi'] returned 2


Best regards,
Goutam
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
FUJITA Tomonori | 7 Jul 13:54 2015
Picon

[PATCH] declare python3 support


Signed-off-by: FUJITA Tomonori <fujita.tomonori@...>
---
 setup.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index 6520daa..626e0f8 100644
--- a/setup.cfg
+++ b/setup.cfg
 <at>  <at>  -13,6 +13,10  <at>  <at>  classifier =
     Topic :: System :: Networking
     Natural Language :: English
     Programming Language :: Python
+    Programming Language :: Python :: 2.6
+    Programming Language :: Python :: 2.7
+    Programming Language :: Python :: 3
+    Programming Language :: Python :: 3.4
     Operating System :: Unix
 keywords =
     openflow
--

-- 
1.9.5 (Apple Git-50.3)

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Gautam Pathak | 7 Jul 09:08 2015
Picon

Error in running Ryu

Hi,

I am getting the following errors:

mininet <at> mininet-VirtualBox:~/ryu$ PYTHONPATH=. ./bin/ryu-manager ryu/app/simple_switch.py
Traceback (most recent call last):
  File "./bin/ryu-manager", line 18, in <module>
    from ryu.cmd.manager import main
  File "/home/mininet/ryu/ryu/cmd/manager.py", line 31, in <module>
    from ryu import cfg
  File "/home/mininet/ryu/ryu/cfg.py", line 17, in <module>
    import oslo_config.cfg
ImportError: No module named oslo_config.cfg

Please suggest how to resolve it.

Best regards,
Goutam
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Adrián Fernández | 7 Jul 02:33 2015
Picon

Extract ipv4 source address

Hello,

I trying to use packet lib to extract the ipv4 source address from arp and ip4 packets, but I get the following error: AttributeError: 'NoneType' object has no attribute 'src'. Any advice?

        pkt = packet.Packet(array.array('B', msg.data))
        eth_pkt = pkt.get_protocol(ethernet.ethernet)
        arp_pkt = pkt.get_protocol(arp.arp)
        ip4_pkt = pkt.get_protocol(ipv4.ipv4)
        
        if arp_pkt:
            pak = arp_pkt
        elif ip4_pkt:
            pak = ip4_pkt
        else:
            pak = eth_pkt
        
        mac_src = eth_pkt.src
        mac_dst = eth_pkt.dst
        #arp_src = arp_pkt.src_ip
        ip4_src = ip4_pkt.src

thank you.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
mehran shetabi | 7 Jul 00:03 2015
Picon

collecting management information in Ryu

Hi,
In Mininet, I have one switch, and 2 controllers that connected to this switch.
With one controller, i want to monitor another controller (i mean that i want to collect management information like CPU usage, memory usage, load of controller, ...).
How can i do this in Ryu?
Thank you,
...................................................
mehran shetabi
PhD student
Computer Engineering Department
IUST
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Hardik Soni | 6 Jul 18:06 2015
Picon
Picon

ryu installation behind proxy

Hi All,

I am facing an issue in installing ryu behind the proxy.
http, https and ftp proxy environment variables are correctly set.

Here is the log. (I am the beginner in python )
--------------------------------------------------------------------------------------------------

[root <at> paravance-37 ryu]# sudo -E pip install ryu
Downloading/unpacking ryu
Downloading ryu-3.23.tar.gz (1.2MB): 1.2MB downloaded
Running setup.py (path:/tmp/pip-build-C_KXUw/ryu/setup.py) egg_info for package ryu
Download error on https://pypi.python.org/simple/pbr/: hostname 'proxy.rennes.grid5000.fr' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'd!
Couldn't find index page for 'pbr' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: hostname 'proxy.rennes.grid5000.fr' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.!
No local packages or download links found for pbr<1.0
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-C_KXUw/ryu/setup.py", line 30, in <module>
pbr=True)
File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 559, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 797, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 809, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 587, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr<1.0')
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pbr/: hostname 'proxy.rennes.grid5000.fr' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'd!

Couldn't find index page for 'pbr' (maybe misspelled?)

Download error on https://pypi.python.org/simple/: hostname 'proxy.rennes.grid5000.fr' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.pyth!

No local packages or download links found for pbr<1.0

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip-build-C_KXUw/ryu/setup.py", line 30, in <module>

pbr=True)

File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__

self.fetch_build_eggs(attrs.pop('setup_requires'))

File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs

parse_requirements(requires), installer=self.fetch_build_egg

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 559, in resolve

dist = best[req.key] = env.best_match(req, self, installer)

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 797, in best_match

return self.obtain(req, installer) # try and download/install

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 809, in obtain

return installer(requirement)

File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg

return cmd.easy_install(req)

File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 587, in easy_install

raise DistutilsError(msg)

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr<1.0')

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-C_KXUw/ryu
Storing debug log for failure in /root/.pip/pip.log


--------------------------------------------------------------------------------------------------


Thanks,
Hardik Soni

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Vinllen Chen | 6 Jul 14:38 2015
Picon

How to get the mac address of switch

Hi, Dear all:

    I want to kown how to get the mac address of switch which is connect to the ryu. 
As i kown, we can use the dpset.get_ports(dpid) to get the port status of switch, but how to get the mac address ? What i said is not mac learning.

    Greate appreciate for anyone's help
--
Best Regards,
Vinllen
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel
ISHIDA Wataru | 6 Jul 08:25 2015
Picon

[PATCH] bgp: fix bug of not taking care of withdrawn label

Reported-by: Toshiki Tsuboi <t.tsubo2000@...>
Signed-off-by: ISHIDA Wataru <ishida.wataru@...>
---
 ryu/lib/packet/bgp.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
index b5d85d2..bd3304f 100644
--- a/ryu/lib/packet/bgp.py
+++ b/ryu/lib/packet/bgp.py
 <at>  <at>  -772,6 +772,13  <at>  <at>  class _BinAddrPrefix(_AddrPrefix):

 class _LabelledAddrPrefix(_AddrPrefix):
     _LABEL_PACK_STR = '!3B'
+    # RFC3107
+    # 3. Carrying Label Mapping Information
+    # The label information carried (as part of NLRI) in the Withdrawn
+    # Routes field should be set to 0x800000.  (Of course, terminating the
+    # BGP session also withdraws all the previously advertised routes.)
+    #
+    _WITHDRAW_LABEL = 0x800000

     def __init__(self, length, addr, labels=[], **kwargs):
         assert isinstance(labels, list)
 <at>  <at>  -843,6 +850,8  <at>  <at>  class _LabelledAddrPrefix(_AddrPrefix):

         while True:
             (label, rest) = cls._label_from_bin(rest)
+            if label == cls._WITHDRAW_LABEL:
+                break
             labels.append(label >> 4)
             if label & 1:  # bottom of stack
                 break
--

-- 
1.9.1

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
Picon

failed to set queues by ovsdb

Helle all,
       I failed to set queues to openvswitch port by ovsdb in ryu. could someone give me an example?
       
      I have tried the rest_qos.py app. For QoS, it is ok.  But, it is not OK for queues.
 
     
 
Best Regards
Haixiang Yang
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@...
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Gmane