Discussion:
[Ryu-devel] Testing BGP in ryu
Pynbiang Hadem
2017-04-02 10:42:06 UTC
Permalink
Hi,

I want to run the RYU BGP
application(ryu/ryu/services/protocols/application.py) for a network with
three AS. Do i need to run 3 instances of the application, one instance for
each AS?. OR am i having a wrong idea about this?.

Pls advice. I am not able to proceed with the test.

Thanks
Hadem
Fujimoto Satoshi
2017-04-03 00:52:08 UTC
Permalink
Hi, Pynbiang.


Yes, you need to run at least 3 instances of the application for a
network with three AS.
If you want to run more BGP instances in an AS, you need to run more
instances of the application.


Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi,
I want to run the RYU BGP
application(ryu/ryu/services/protocols/application.py) for a network
with three AS. Do i need to run 3 instances of the application, one
instance for each AS?. OR am i having a wrong idea about this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-04-03 09:33:58 UTC
Permalink
Hi,

I prepared two instances of the RYU BGP app as below:
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py

I also made the changes to the application1.py (correspondingly for
application2.py) as below:

CONF.register_opts([
cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file', default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])

I am also attaching herewith the modified *configuration files* taken
from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py
and application2.py respectively.

The problem is that i am not able to run the two applications simultaneously.

Kindly advice what else i am missing here.


Thanks

Hadem



On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang.
Yes, you need to run at least 3 instances of the application for a network
with three AS.
If you want to run more BGP instances in an AS, you need to run more
instances of the application.
Thanks,
Fujimoto
Hi,
I want to run the RYU BGP application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong idea about
this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fujimoto Satoshi
2017-04-04 01:41:16 UTC
Permalink
Hi, Pynbiang


I guess it is the cause of the problem that the two applications use the
same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.

To run the applications, I suggest the following choices.

1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.

2. If you have installed mininet, you can run applications in each
virtual host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a
separated namespace,
so you have to run applications in virtual hosts.


Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port',default=50001,help='rpc-port'),
cfg.StrOpt('bind-ip',default='0.0.0.1',help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file',default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified*configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more
BGP instances in an AS, you need to run more instances of the
application. Thanks, Fujimoto
Post by Pynbiang Hadem
Hi,
I want to run the RYU BGP
application(ryu/ryu/services/protocols/application.py) for a
network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong
idea about this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Fujimoto Satoshi
2017-04-04 02:58:49 UTC
Permalink
Hi, Pynbiang


FYI, you can run two Ryu BGP applications by the following steps:

1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x

2. Run applications in each host
h1> ryu-manager [application1.py] --bgp-app-config-file
[config_file_for_application1.py]
h2> ryu-manager [application2.py] --bgp-app-config-file
[config_file_for_application2.py]


Thanks,
Fujimoto
Post by Fujimoto Satoshi
Hi, Pynbiang
I guess it is the cause of the problem that the two applications use
the same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run applications in each
virtual host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a
separated namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port',default=50001,help='rpc-port'),
cfg.StrOpt('bind-ip',default='0.0.0.1',help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file',default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified*configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more
BGP instances in an AS, you need to run more instances of the
application. Thanks, Fujimoto
Post by Pynbiang Hadem
Hi,
I want to run the RYU BGP
application(ryu/ryu/services/protocols/application.py) for a
network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong
idea about this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-04-04 03:58:40 UTC
Permalink
Thanks Fujimoto for the insightful reply.
I will try to implement it accordingly.

Thanks
Hadem


On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x
2. Run applications in each host
h1> ryu-manager [application1.py] --bgp-app-config-file
[config_file_for_application1.py]
h2> ryu-manager [application2.py] --bgp-app-config-file
[config_file_for_application2.py]
Thanks,
Fujimoto
Hi, Pynbiang
I guess it is the cause of the problem that the two applications use the
same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run applications in each virtual
host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a separated
namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file', default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified *configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
Post by Pynbiang Hadem
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more BGP
instances in an AS, you need to run more instances of the application.
Thanks, Fujimoto
Hi,
I want to run the RYU BGP application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong idea about
this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Pynbiang Hadem
2017-04-07 07:31:07 UTC
Permalink
Hi,

I'm running the above BGP test applications on ryu 3.30 and am getting some
errors:

File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py",
line 46, in socket_checkerr
raise socket.error(err, errno.errorcode[err])
error: [Errno 101] ENETUNREACH

I executed as below:

ryu-manager /home/mininet/BGP3/application1.py --config-file
/home/mininet/BGP3/ryu.conf


Do i need to run it on higher version of ryu?. Pls advice

Thanks
Hadem
Post by Pynbiang Hadem
Thanks Fujimoto for the insightful reply.
I will try to implement it accordingly.
Thanks
Hadem
On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x
2. Run applications in each host
h1> ryu-manager [application1.py] --bgp-app-config-file
[config_file_for_application1.py]
h2> ryu-manager [application2.py] --bgp-app-config-file
[config_file_for_application2.py]
Thanks,
Fujimoto
Hi, Pynbiang
I guess it is the cause of the problem that the two applications use the
same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run applications in each
virtual host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a separated
namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file', default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified *configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
Post by Pynbiang Hadem
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more BGP
instances in an AS, you need to run more instances of the application.
Thanks, Fujimoto
Hi,
I want to run the RYU BGP application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong idea about
this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Pynbiang Hadem
2017-06-21 16:42:23 UTC
Permalink
Hi Fujimoto,

I have followed the steps given by you:
1) $ sudo mn --switch ovsbr --topo single,2 --mac -x
2) in host1 (xterm) i executed the following:
***@mininet-vm:~# ryu-manager --verbose --config-file
/home/mininet/ryubgp/ryu.conf
/home/mininet/ryu/ryu/services/protocols/bgp/application.py
* OUTPUT:*
loading app /home/mininet/ryu/ryu/services/protocols/bgp/application.py
Create CustomEvent called
instantiating app
/home/mininet/ryu/ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
BRICK RyuBGPSpeaker
NetworkController started listening for connections...
Error creating socket: [Errno 97] Address family not supported by
protocol

Pls advice

Thanks
Hadem
Post by Pynbiang Hadem
Hi,
I'm running the above BGP test applications on ryu 3.30 and am getting
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 46, in socket_checkerr
raise socket.error(err, errno.errorcode[err])
error: [Errno 101] ENETUNREACH
ryu-manager /home/mininet/BGP3/application1.py --config-file /home/mininet/BGP3/ryu.conf
Do i need to run it on higher version of ryu?. Pls advice
Thanks
Hadem
Post by Pynbiang Hadem
Thanks Fujimoto for the insightful reply.
I will try to implement it accordingly.
Thanks
Hadem
On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x
2. Run applications in each host
h1> ryu-manager [application1.py] --bgp-app-config-file
[config_file_for_application1.py]
h2> ryu-manager [application2.py] --bgp-app-config-file
[config_file_for_application2.py]
Thanks,
Fujimoto
Hi, Pynbiang
I guess it is the cause of the problem that the two applications use the
same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run applications in each
virtual host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a
separated namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file', default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified *configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
Post by Pynbiang Hadem
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more BGP
instances in an AS, you need to run more instances of the application.
Thanks, Fujimoto
Hi,
I want to run the RYU BGP application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong idea about
this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fujimoto Satoshi
2017-06-22 00:23:28 UTC
Permalink
Hi, Pynbiang

I'm sorry for that I've overlooked your reply.

I think something may be wrong with your ryu.conf, especially about IP
address or port settings.
Please check your ryu.conf, or could you let me see your ryu.conf?

Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi Fujimoto,
1)$ sudo mn --switch ovsbr --topo single,2 --mac -x
/home/mininet/ryubgp/ryu.conf
/home/mininet/ryu/ryu/services/protocols/bgp/application.py
* OUTPUT:*
loading app
/home/mininet/ryu/ryu/services/protocols/bgp/application.py
Create CustomEvent called
instantiating app
/home/mininet/ryu/ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
BRICK RyuBGPSpeaker
NetworkController started listening for connections...
Error creating socket: [Errno 97] Address family not supported by protocol
Pls advice
Thanks
Hadem
On Fri, Apr 7, 2017 at 1:01 PM, Pynbiang Hadem
Hi,
I'm running the above BGP test applications on ryu 3.30 and am
File"/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line46,in socket_checkerr
raise socket.error(err, errno.errorcode[err])
error: [Errno101] ENETUNREACH
ryu-manager /home/mininet/BGP3/application1.py --config-file /home/mininet/BGP3/ryu.conf
Do i need to run it on higher version of ryu?. Pls advice
Thanks
Hadem
On Tue, Apr 4, 2017 at 9:28 AM, Pynbiang Hadem
Thanks Fujimoto for the insightful reply.
I will try to implement it accordingly.
Thanks
Hadem
On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi
Hi, Pynbiang
1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x
2. Run applications in each host
h1> ryu-manager [application1.py]
--bgp-app-config-file [config_file_for_application1.py]
h2> ryu-manager [application2.py]
--bgp-app-config-file [config_file_for_application2.py]
Thanks,
Fujimoto
Post by Fujimoto Satoshi
Hi, Pynbiang
I guess it is the cause of the problem that the two
applications use the same port.
Unfortunately, the port which the application uses is no
configurable,
so you cannot run the two applications simultaneously in
a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run
applications in each virtual host("h1", "h2", ...)
created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is
not in a separated namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py
CONF.register_opts([
cfg.IntOpt('bind-port',default=50001,help='rpc-port'),
cfg.StrOpt('bind-ip',default='0.0.0.1',help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file',default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified*configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi
Hi, Pynbiang. Yes, you need to run at least 3
instances of the application for a network with
three AS. If you want to run more BGP instances in
an AS, you need to run more instances of the
application. Thanks, Fujimoto
Post by Pynbiang Hadem
Hi,
I want to run the RYU BGP
application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3
instances of the application, one instance for each
AS?. OR am i having a wrong idea about this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-06-22 12:34:15 UTC
Permalink
Hi Fujimoto,

Just to avoid any further complications, i have now executed the following
command:
*Command:*
ryu-manager --verbose --config-file
ryu/ryu/services/protocols/bgp/bgp_sample_conf.py
/home/mininet/ryu/ryu/services/protocols/bgp/application.py

*Output:*
Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 9, in <module>
load_entry_point('ryu==4.14', 'console_scripts', 'ryu-manager')()
File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line
53, in main
default_config_files=['/usr/local/etc/ryu/ryu.conf'])
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
2376, in __call__
else sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
3057, in _parse_cli_opts
return self._parse_config_files()
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
3093, in _parse_config_files
self._oparser.parse_args(self._args, namespace)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
2204, in parse_args
return super(_CachedArgumentParser, self).parse_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1701, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1939, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python2.7/argparse.py", line 1879, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
1605, in __call__
ConfigParser._parse_file(values, namespace)
File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
1824, in _parse_file
raise ConfigFileParseError(pe.filename, str(pe))
oslo_config.cfg.ConfigFileParseError: Failed to parse
/home/mininet/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py: at
/home/mininet/ryu/ryu/services/protocols/bgp/bgp_sample_conf.py:1, No ':'
or '=' found in assignment: 'import os'

What could be the issue here?. i am using OpenvSwitch 2.7 & ryu 4.14

Thanks
Hadem

On Thu, Jun 22, 2017 at 5:53 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
I'm sorry for that I've overlooked your reply.
I think something may be wrong with your ryu.conf, especially about IP
address or port settings.
Please check your ryu.conf, or could you let me see your ryu.conf?
Thanks,
Fujimoto
Hi Fujimoto,
1) $ sudo mn --switch ovsbr --topo single,2 --mac -x
/home/mininet/ryubgp/ryu.conf /home/mininet/ryu/ryu/
services/protocols/bgp/application.py
* OUTPUT:*
loading app /home/mininet/ryu/ryu/services/protocols/bgp/
application.py
Create CustomEvent called
instantiating app /home/mininet/ryu/ryu/services/protocols/bgp/application.py
of RyuBGPSpeaker
BRICK RyuBGPSpeaker
NetworkController started listening for connections...
Error creating socket: [Errno 97] Address family not supported by protocol
Pls advice
Thanks
Hadem
Post by Pynbiang Hadem
Hi,
I'm running the above BGP test applications on ryu 3.30 and am getting
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 46, in socket_checkerr
raise socket.error(err, errno.errorcode[err])
error: [Errno 101] ENETUNREACH
ryu-manager /home/mininet/BGP3/application1.py --config-file /home/mininet/BGP3/ryu.conf
Do i need to run it on higher version of ryu?. Pls advice
Thanks
Hadem
Post by Pynbiang Hadem
Thanks Fujimoto for the insightful reply.
I will try to implement it accordingly.
Thanks
Hadem
On Tue, Apr 4, 2017 at 8:28 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
1. Run mininet
$ sudo mn --switch ovsbr --topo single,2 --mac -x
2. Run applications in each host
h1> ryu-manager [application1.py] --bgp-app-config-file
[config_file_for_application1.py]
h2> ryu-manager [application2.py] --bgp-app-config-file
[config_file_for_application2.py]
Thanks,
Fujimoto
Hi, Pynbiang
I guess it is the cause of the problem that the two applications use
the same port.
Unfortunately, the port which the application uses is no configurable,
so you cannot run the two applications simultaneously in a single host.
To run the applications, I suggest the following choices.
1. I recommend you to use Docker or VM(Virtual Box, KVM, ...).
You can run applications in each container or VM.
2. If you have installed mininet, you can run applications in each
virtual host("h1", "h2", ...) created by mininet.
It is because the namespace is separated by virtual hosts.
Please note that virtual switches such as "s1" is not in a
separated namespace,
so you have to run applications in virtual hosts.
Thanks,
Fujimoto
Hi,
1) /home/mininet/BGP1/application1.py
2) /home/mininet/BGP2/application2.py
I also made the changes to the application1.py (correspondingly for
CONF.register_opts([
cfg.IntOpt('bind-port', default=50001, help='rpc-port'),
cfg.StrOpt('bind-ip', default='0.0.0.1', help='rpc-bind-ip'),
cfg.StrOpt('bgp-config-file', default="/home/mininet/BGP1/bgpconfig1.py",
help='bgp-config-file')
])
I am also attaching herewith the modified *configuration files* taken from ryu/ryu/services/protocols/bgp_sample_conf.py for application1.py and application2.py respectively.
The problem is that i am not able to run the two applications simultaneously.
Kindly advice what else i am missing here.
Thanks
Hadem
On Mon, Apr 3, 2017 at 6:22 AM, Fujimoto Satoshi <
Post by Pynbiang Hadem
Hi, Pynbiang. Yes, you need to run at least 3 instances of the
application for a network with three AS. If you want to run more BGP
instances in an AS, you need to run more instances of the application.
Thanks, Fujimoto
Hi,
I want to run the RYU BGP application(ryu/ryu/services/protocols/application.py)
for a network with three AS. Do i need to run 3 instances of the
application, one instance for each AS?. OR am i having a wrong idea about
this?.
Pls advice. I am not able to proceed with the test.
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Pynbiang Hadem
2017-06-22 12:50:38 UTC
Permalink
Hi Fujimoto,

*Pls ignore the last mail. I have corrected the command as below as pointed
out by you in one of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py

*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at
0xb59c38ac>, 'bgp_server_port': 179, 'local_as': 65001,
'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0, 'cluster_id':
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in
_launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255, in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235, in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'

API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.2', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4':
True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.3', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4':
False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.4', 'cap_mbgp_vpnv4fs': True, 'cap_mbgp_vpnv4':
False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'], 'route_dist': '65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'], 'route_dist': '65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'], 'route_dist': '65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
'route_family': 'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'], 'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
'route_family': 'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'], 'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
'route_family': 'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc':
None, 'export_rts': ['65001:350'], 'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
API method prefix.add_local called with args: {'prefix': '2001:db8:2::/64',
'next_hop': '::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family':
'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
'redundancy_mode': 'single_active', 'ethernet_tag_id': 4294967295L,
'next_hop': '0.0.0.0', 'route_dist': '65001:200', 'esi': {'port_key': 100,
'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr': '10.30.1.1',
'tunnel_type': 'vxlan', 'route_type': 'mac_ip_adv', 'ethernet_tag_id': 0,
'vni': 200, 'next_hop': '172.17.0.1', 'route_dist': '65001:200',
'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type':
'multicast_etag', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with args: {'route_type':
'eth_seg', 'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr':
'172.17.0.1', 'esi': {'local_disc': 100, 'type': 3, 'mac_addr':
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24', 'route_type': 'ip_prefix', 'ethernet_tag_id': 0, 'next_hop':
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port':
'>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.17.0.0/24'}, 'flowspec_family':
'ipv4fs', 'actions': {'redirect': {'local_administrator': 100, 'as_number':
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port':
'>=8500 & <=9000', 'dst_prefix': '10.70.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.18.0.0/24'}, 'flowspec_family':
'vpnv4fs', 'route_dist': '65001:250', 'actions': {'redirect':
{'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp':
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label':
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'dst_port': '>9000 & <9050', 'next_header': 6, 'src_prefix':
'3001::2/128'}, 'flowspec_family': 'ipv6fs', 'actions': {'redirect':
{'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp':
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label':
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'dst_port': '>9000 & <9050', 'next_header': 6, 'src_prefix':
'3001::2/128'}, 'flowspec_family': 'vpnv6fs', 'route_dist': '65001:300',
'actions': {'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'inner_vlan_id':
'<3000', 'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap':
66, 'inner_vlan_cos': '<=5', 'vlan_id': '>4000', 'llc_ssap': 66,
'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565, 'src_mac':
'12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs', 'route_dist':
'65001:350', 'actions': {'redirect': {'local_administrator': 100,
'as_number': 10}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}, 'traffic_marking': {'dscp': 24},
'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol

Pls point out the problem in my environment
Thanks
Hadem
Fujimoto Satoshi
2017-06-23 00:03:09 UTC
Permalink
Hi, Pynbiang

Thank you for sending your log messages!
Post by Pynbiang Hadem
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.

Please run your command with "sudo", that is:
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py


Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as
pointed out by you in one of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
Parent module 'bgpspeaker.application' not found while handling
absolute import
import os
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
Parent module 'bgpspeaker.application' not found while handling
absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at
0xb59c38ac>, 'bgp_server_port': 179, 'local_as': 65001,
'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0,
'cluster_id': None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
60, in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255, in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235, in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
None, 'ip_address': '172.17.0.2', 'cap_mbgp_vpnv4fs': False,
'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
None, 'ip_address': '172.17.0.3', 'cap_mbgp_vpnv4fs': False,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True, 'cap_four_octet_as_number': True,
True, 'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
None, 'ip_address': '172.17.0.4', 'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
None, 'export_rts': ['65001:100'], 'route_dist': '65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
None, 'export_rts': ['65001:150'], 'route_dist': '65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
None, 'export_rts': ['65001:200'], 'route_dist': '65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
None, 'export_rts': ['65001:250'], 'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
None, 'export_rts': ['65001:300'], 'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
None, 'export_rts': ['65001:350'], 'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24
<http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24
'65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'65001:150', 'route_family': 'ipv6'}
{'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.30.1.1', 'tunnel_type': 'vxlan', 'route_type': 'mac_ip_adv',
'ethernet_tag_id': 0, 'vni': 200, 'next_hop': '172.17.0.1',
'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
'multicast_etag', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'eth_seg', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '172.17.0.1', 'esi': {'local_disc': 100, 'type': 3,
'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.50.1.0/24 <http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000',
'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'src_prefix': '172.17.0.0/24' <http://172.17.0.0/24%27>},
{'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
{'icmp_code': 6, 'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF |
'10.70.1.0/24 <http://10.70.1.0/24>', 'dst_port': '>9000 & <9050',
'ip_proto': 6, 'src_prefix': '172.18.0.0/24'
<http://172.18.0.0/24%27>}, 'flowspec_family': 'vpnv4fs',
{'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF',
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
{'icmp_code': 6, 'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF |
==FF', 'flow_label': 100, 'dscp': '22 | 24', 'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050',
{'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
{'inner_vlan_id': '<3000', 'dst_mac': 'BE:EF:C0:FF:EE:DD',
'ether_type': 2048, 'llc_dsap': 66, 'inner_vlan_cos': '<=5',
100, 'snap': 74565, 'src_mac': '12:34:56:78:90:AB'},
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}, 'traffic_marking': {'dscp': 24},
'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
2, 'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-06-24 08:17:41 UTC
Permalink
Hi, Fujimoto

Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py

However, the output is still the same.

what could be the issue?.

Thanks
Hadem

On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi <
Post by Fujimoto Satoshi
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as
pointed out by you in one of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at
0xb59c38ac>, 'bgp_server_port': 179, 'local_as': 65001,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60,
in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255, in start
self._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235, in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'], 'route_dist': '65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'], 'route_dist': '65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'], 'route_dist': '65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
'route_family': 'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'], 'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
'route_family': 'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'], 'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
None, 'export_rts': ['65001:350'], 'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'65001:150', 'route_family': 'ipv6'}
{'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.30.1.1', 'tunnel_type': 'vxlan', 'route_type': 'mac_ip_adv',
'65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
'multicast_etag', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24', 'route_type': 'ip_prefix', 'ethernet_tag_id': 0,
'172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
'>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.17.0.0/24'
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
'>=8500 & <=9000', 'dst_prefix': '10.70.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.18.0.0/24'
'65001:250', 'actions': {'redirect': {'local_administrator': 100,
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'3001::2/128'}, 'flowspec_family': 'vpnv6fs', 'route_dist': '65001:300',
'actions': {'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
2048, 'llc_dsap': 66, 'inner_vlan_cos': '<=5', 'vlan_id': '>4000',
'llc_ssap': 66, 'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
0}, 'traffic_action': {'action': 3}, 'traffic_marking': {'dscp': 24},
'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iwase Yusuke
2017-06-26 00:50:33 UTC
Permalink
Hi Pynbiang,

Excuse me for jumping in.

It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.

https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639

Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and "/etc/default/grub")
on your machine?

Thanks,
Iwase
Post by Pynbiang Hadem
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
Hi, Pynbiang
Thank you for sending your log messages!
Post by Pynbiang Hadem
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as pointed out by you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1', 'label_range': (100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>, 'bgp_server_port': 179,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py", line 255,
in start
self._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py", line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4', 'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'], 'route_family': 'ipv4',
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'], 'route_family': 'ipv6',
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'], 'route_family': 'evpn',
'65001:200'}
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:250'],
'route_dist': '65001:250'}
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:300'],
'route_dist': '65001:300'}
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24 <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24 <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
'65001:200', 'esi': {'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'172.17.0.1', 'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1', 'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '10.50.1.0/24
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24
{'redirect': {'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000,
'10.70.1.0/24 <http://10.70.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24' <http://172.18.0.0/24%27>}, 'flowspec_family': 'vpnv4fs',
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24', 'packet_len': 1000,
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6, 'src_prefix': '3001::2/128'},
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
{'redirect': {'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66, 'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs', 'route_dist': '65001:350',
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2, 'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-06-27 17:50:08 UTC
Permalink
HI Fujimoto,

Yes, i guess you are right. i have the following lines of code in
*/etc/sysctl.conf*

*# Mininet: disable IPv6*
*net.ipv6.conf.all.disable_ipv6 = 1*
*net.ipv6.conf.default.disable_ipv6 = 1*
*net.ipv6.conf.lo.disable_ipv6 = 1*

And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""

GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"

Is there anything wrong with my settings?.

Thanks
Hadem
Post by Iwase Yusuke
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d46
6732a354b3533e0e138e/util/install.sh#L615-L639
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and "/etc/default/grub")
on your machine?
Thanks,
Iwase
Post by Pynbiang Hadem
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi <
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Post by Pynbiang Hadem
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as
pointed out by you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>,
'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
'both', 'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
'both', 'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
'both', 'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
['65001:100'], 'route_family': 'ipv4',
'65001:100'}
['65001:150'], 'route_family': 'ipv6',
'65001:150'}
['65001:200'], 'route_family': 'evpn',
'65001:200'}
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'],
'route_dist': '65001:250'}
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'],
'route_dist': '65001:300'}
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24 <
http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '
10.20.1.0/24 <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
'2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
'65001:200', 'esi': {'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'multicast_etag',
'10.40.1.1', 'ethernet_tag_id': 0}
{'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24
<http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK &
1000, 'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '
10.60.1.0/24
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'10.70.1.0/24 <http://10.70.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24' <http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 |
24', 'packet_len': 1000,
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
'src_prefix': '3001::2/128'},
100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100,
'dscp': '22 | 24',
'>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050',
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
{'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3',
'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
'route_dist': '65001:350',
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200,
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------
------------------
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
forge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Iwase Yusuke
2017-06-28 04:34:52 UTC
Permalink
Hi Pynbiang,

Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.

To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and invoke "sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.

Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever


Thanks,
Iwase
Post by Pynbiang Hadem
HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in */etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and "/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import REDUNDANCY_MODE_SINGLE_ACTIVE
(100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>, 'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:100'],
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:150'],
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:200'],
'65001:200'}
['65001:250'],
'route_dist': '65001:250'}
['65001:300'],
'route_dist': '65001:300'}
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
'65001:200', 'esi': {'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr': '10.30.1.1',
'172.17.0.1', 'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '10.40.1.1',
'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_seg',
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1', 'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '10.50.1.0/24
<http://10.50.1.0/24>
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000,
'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24>
'172.17.0.0/24 <http://172.17.0.0/24>' <http://172.17.0.0/24%27>},
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000,
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>', 'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>' <http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
'route_dist': '65001:250', 'actions': {'redirect': {'local_administrator': 100,
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000,
'3001::2/128'},
'flowspec_family': 'ipv6fs', 'actions': {'redirect': {'local_administrator': 100,
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
74565,
'65001:350',
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3},
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2, 'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot <http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-07-01 08:27:39 UTC
Permalink
Hi Fujimoto,

I have made the changes pointed out by you as below:
1)-----------/etc/sysctl.conf -----------------------
# Mininet: disable IPv6
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1

2)----------- /etc/default/grub ---------------------
GRUB_CMDLINE_LINUX_DEFAULT="text"


OUTPUT:
1)---------- ***@mininet-vm:~$ ip
a--------------------------------------------------------------------------------

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP group default qlen 1000
link/ether 08:00:27:1d:fb:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP group default qlen 1000
link/ether 08:00:27:72:29:6a brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 brd 192.168.56.255 scope global eth1
valid_lft forever preferred_lft forever
4: s1-***@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast master ovs-system state UP group default qlen 1000
link/ether 5a:26:c9:f8:d1:70 brd ff:ff:ff:ff:ff:ff
5: s1-***@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast master ovs-system state UP group default qlen 1000
link/ether 06:08:e6:9e:72:68 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether 96:bd:ba:cf:f1:5e brd ff:ff:ff:ff:ff:ff
7: s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 1e:f0:00:5b:a3:40 brd ff:ff:ff:ff:ff:ff
--------------------------------------------------------------------------------------------------------------------------------------------

2)----------------- sudo ryu-manager
ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py --------------------------
***@mininet-vm:~/ryu$ sudo ryu-manager
ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at
0x7fdc964c4590>, 'bgp_server_port': 179, 'local_as': 65001,
'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0, 'cluster_id':
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 97] Address family not supported by protocol
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.2', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4':
True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.3', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4':
False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.4', 'cap_mbgp_vpnv4fs': True, 'cap_mbgp_vpnv4':
False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'], 'route_dist': '65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'], 'route_dist': '65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'], 'route_dist': '65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
'route_family': 'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'], 'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
'route_family': 'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'], 'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
'route_family': 'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc':
None, 'export_rts': ['65001:350'], 'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
API method prefix.add_local called with args: {'prefix': '2001:db8:2::/64',
'next_hop': '::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family':
'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
'redundancy_mode': 'single_active', 'ethernet_tag_id': 4294967295,
'next_hop': '0.0.0.0', 'route_dist': '65001:200', 'esi': {'port_key': 100,
'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr': '10.30.1.1',
'tunnel_type': 'vxlan', 'route_type': 'mac_ip_adv', 'ethernet_tag_id': 0,
'vni': 200, 'next_hop': '172.17.0.1', 'route_dist': '65001:200',
'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type':
'multicast_etag', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with args: {'route_type':
'eth_seg', 'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr':
'172.17.0.1', 'esi': {'local_disc': 100, 'type': 3, 'mac_addr':
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24', 'route_type': 'ip_prefix', 'ethernet_tag_id': 0, 'next_hop':
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port':
'>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.17.0.0/24'}, 'flowspec_family':
'ipv4fs', 'actions': {'redirect': {'local_administrator': 100, 'as_number':
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port':
'>=8500 & <=9000', 'dst_prefix': '10.70.1.0/24', 'dst_port': '>9000 &
<9050', 'ip_proto': 6, 'src_prefix': '172.18.0.0/24'}, 'flowspec_family':
'vpnv4fs', 'route_dist': '65001:250', 'actions': {'redirect':
{'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp':
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label':
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'dst_port': '>9000 & <9050', 'next_header': 6, 'src_prefix':
'3001::2/128'}, 'flowspec_family': 'ipv6fs', 'actions': {'redirect':
{'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp':
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label':
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'dst_port': '>9000 & <9050', 'next_header': 6, 'src_prefix':
'3001::2/128'}, 'flowspec_family': 'vpnv6fs', 'route_dist': '65001:300',
'actions': {'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'inner_vlan_id':
'<3000', 'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap':
66, 'inner_vlan_cos': '<=5', 'vlan_id': '>4000', 'llc_ssap': 66,
'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565, 'src_mac':
'12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs', 'route_dist':
'65001:350', 'actions': {'redirect': {'local_administrator': 100,
'as_number': 10}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}, 'traffic_marking': {'dscp': 24},
'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Will try to reconnect to 172.17.0.2 after 30 secs: True
---------------------------------------------------------------------------

Pls guide how to proceed.

Thanks
Hadem
Post by Iwase Yusuke
Hi Pynbiang,
Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.
To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and invoke "sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.
Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Thanks,
Iwase
Post by Pynbiang Hadem
HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in */etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d46
6732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and
"/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi <
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command
as below as pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py
of RyuBGPSpeaker
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
(100,
100000), 'waiter': <ryu.lib.hub.Event object at
0xb59c38ac>, 'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0,
'refresh_stalepath_time': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not
supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py",
line 60, in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist
-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist
-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
{'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
{'connect_mode': 'both',
'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False,
False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
{'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True,
False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'],
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'],
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'],
'65001:200'}
['65001:250'],
'route_dist': '65001:250'}
['65001:300'],
'route_dist': '65001:300'}
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '
10.10.1.0/24
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100',
'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
{'route_type': 'eth_ad',
'single_active', 'ethernet_tag_id': 4294967295L,
'65001:200', 'esi': {'port_key': 100, 'type': 1,
'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
{'ip_addr': '10.30.1.1',
'aa:bb:cc:dd:ee:ff', 'esi': 0}
{'route_type': 'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1',
'ethernet_tag_id': 0}
{'route_type': 'eth_seg',
'172.17.0.1', 'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
{'ip_prefix': '10.50.1.0/24
<http://10.50.1.0/24>
<http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'172.16.0.1', 'esi': 0}
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24>
<http://10.60.1.0/24>', 'dst_port': '>9000 & <9050',
'172.17.0.0/24 <http://172.17.0.0/24>' <
http://172.17.0.0/24%27>},
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
'22 | 24', 'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>',
'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>' <
http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
{'local_administrator': 100,
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100,
'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500
'2001::1/128/32', 'dst_port': '>9000 & <9050',
'3001::2/128'},
{'local_administrator': 100,
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF',
'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000',
'src_port': '>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 &
<9050', 'next_header': 6,
'3001::2/128'}, 'flowspec_family': 'vpnv6fs',
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
{'rules': {'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3',
74565,
'65001:350',
'actions': {'redirect': {'local_administrator': 100,
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3},
200, 'actions': 49152},
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not
supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
-----------------------------
-------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/s
lashdot <http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
forge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Iwase Yusuke
2017-07-03 01:55:46 UTC
Permalink
Hi Pynbiang,

Did you execute "sudo update-grub" command and then reboot?
The outputs of "ip a" command shows IPv6 is NOT enabled...

Thanks,
Iwase
Post by Pynbiang Hadem
Hi Fujimoto,
1)-----------/etc/sysctl.conf -----------------------
# Mininet: disable IPv6
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1
2)----------- /etc/default/grub ---------------------
GRUB_CMDLINE_LINUX_DEFAULT="text"
a--------------------------------------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:1d:fb:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 <http://10.0.2.15/24> brd 10.0.2.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:72:29:6a brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 <http://192.168.56.101/24> brd 192.168.56.255 scope global eth1
valid_lft forever preferred_lft forever
UP group default qlen 1000
link/ether 5a:26:c9:f8:d1:70 brd ff:ff:ff:ff:ff:ff
UP group default qlen 1000
link/ether 06:08:e6:9e:72:68 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 96:bd:ba:cf:f1:5e brd ff:ff:ff:ff:ff:ff
7: s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1e:f0:00:5b:a3:40 brd ff:ff:ff:ff:ff:ff
--------------------------------------------------------------------------------------------------------------------------------------------
2)----------------- sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py --------------------------
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1', 'label_range': (100, 100000),
'waiter': <ryu.lib.hub.Event object at 0x7fdc964c4590>, 'bgp_server_port': 179, 'local_as': 65001,
'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0, 'cluster_id': None, 'local_pref': 100,
'refresh_max_eor_time': 0}
Error creating socket: [Errno 97] Address family not supported by protocol
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': False,
'172.17.0.2', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': True,
'172.17.0.3', 'cap_mbgp_vpnv4fs': False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': False,
True, 'is_route_reflector_client': False, 'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'], 'route_family': 'ipv4',
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'], 'route_family': 'ipv6',
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'], 'route_family': 'evpn',
'65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'], 'route_family': 'ipv4fs',
'65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'], 'route_family': 'ipv6fs',
'65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'], 'route_family': 'l2vpnfs',
'65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24 <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24 <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
'single_active', 'ethernet_tag_id': 4294967295, 'next_hop': '0.0.0.0', 'route_dist': '65001:200',
'esi': {'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr': '10.30.1.1', 'tunnel_type': 'vxlan',
'route_type': 'mac_ip_adv', 'ethernet_tag_id': 0, 'vni': 200, 'next_hop': '172.17.0.1',
'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1', 'esi': {'local_disc': 100, 'type': 3,
'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '10.50.1.0/24
<http://10.50.1.0/24>', 'route_type': 'ip_prefix', 'ethernet_tag_id': 0, 'next_hop': '0.0.0.0',
'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
'80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24 <http://10.60.1.0/24>',
'dst_port': '>9000 & <9050', 'ip_proto': 6, 'src_prefix': '172.17.0.0/24' <http://172.17.0.0/24'>},
'flowspec_family': 'ipv4fs', 'actions': {'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
'80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.70.1.0/24 <http://10.70.1.0/24>',
'dst_port': '>9000 & <9050', 'ip_proto': 6, 'src_prefix': '172.18.0.0/24' <http://172.18.0.0/24'>},
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24', 'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
{'dscp': 24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24', 'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
'vpnv6fs', 'route_dist': '65001:300', 'actions': {'redirect': {'local_administrator': 100,
0}, 'traffic_action': {'action': 3}}}
{'redirect': {'local_administrator': 100, 'as_number': 10}, 'traffic_rate': {'rate_info': 100.0,
{'tpid_2': 300, 'tpid_1': 200, 'actions': 49152}, 'vlan_action': {'cos_1': 3, 'vlan_1': 3000,
'vlan_2': 4000, 'cos_2': 2, 'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Will try to reconnect to 172.17.0.2 after 30 secs: True
---------------------------------------------------------------------------
Pls guide how to proceed.
Thanks
Hadem
Hi Pynbiang,
Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.
To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and invoke "sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.
Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Thanks,
Iwase
HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in */etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and "/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as
pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py --bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
(100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>,
'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0, 'refresh_stalepath_time': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60,
in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:100'],
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:150'],
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn',
'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:200'],
'65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
['65001:250'],
'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
['65001:300'],
'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24
<http://10.10.1.0/24>
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24
<http://10.20.1.0/24>
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
'single_active', 'ethernet_tag_id': 4294967295L, 'next_hop': '0.0.0.0',
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr': '10.30.1.1',
'vxlan', 'route_type': 'mac_ip_adv', 'ethernet_tag_id': 0, 'vni': 200,
'172.17.0.1', 'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff',
'esi': 0}
'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '10.40.1.1',
'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_seg',
{'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.50.1.0/24 <http://10.50.1.0/24>
<http://10.50.1.0/24>
<http://10.50.1.0/24>', 'route_type': 'ip_prefix', 'ethernet_tag_id': 0,
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000,
'icmp_type': 0,
'10.60.1.0/24 <http://10.60.1.0/24>
<http://10.60.1.0/24>
<http://10.60.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'172.17.0.0/24 <http://172.17.0.0/24> <http://172.17.0.0/24>'
<http://172.17.0.0/24%27>},
{'dscp': 24},
{'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>
<http://10.70.1.0/24>', 'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>
<http://172.18.0.0/24>' <http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
100,
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'3001::2/128'},
{'local_administrator': 100,
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'icmp_code': 6,
'22 | 24',
'>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
'3001::2/128'}, 'flowspec_family': 'vpnv6fs', 'route_dist': '65001:300',
{'dscp': 24},
{'action': 3}}}
{'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3', 'llc_control': 100,
74565,
'65001:350',
'actions': {'redirect': {'local_administrator': 100, 'as_number': 10},
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3},
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2, 'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
<http://sdm.link/slashdot> <http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-07-05 17:02:16 UTC
Permalink
Hi,

Thanks Iwase. Its working now.
*But why am i getting this message as below?. What does it mean?.*
"*ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* import os*
*ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4*
*ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6*
*ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN*
*ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC*
*ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC*
*ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC*
*ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET*
*ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP*
*ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED*
*ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY*
*ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE*
*ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN*
*ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE*
*ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT*
*ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE*
*ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4*
*ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6*
*ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4*
*ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6*
*ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN*
*ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE*
*ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL*
*ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP*
*ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH*
*ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP*
*ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER*
*ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER*
*ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI*
*ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO*
*ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import*
* from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE*"

Thanks
Hadem
Post by Iwase Yusuke
Hi Pynbiang,
Did you execute "sudo update-grub" command and then reboot?
The outputs of "ip a" command shows IPv6 is NOT enabled...
Thanks,
Iwase
Post by Pynbiang Hadem
Hi Fujimoto,
1)-----------/etc/sysctl.conf -----------------------
# Mininet: disable IPv6
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1
2)----------- /etc/default/grub ---------------------
GRUB_CMDLINE_LINUX_DEFAULT="text"
---------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 08:00:27:1d:fb:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 <http://10.0.2.15/24> brd 10.0.2.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 08:00:27:72:29:6a brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 <http://192.168.56.101/24> brd
192.168.56.255 scope global eth1
valid_lft forever preferred_lft forever
pfifo_fast master ovs-system state UP group default qlen 1000
link/ether 5a:26:c9:f8:d1:70 brd ff:ff:ff:ff:ff:ff
pfifo_fast master ovs-system state UP group default qlen 1000
link/ether 06:08:e6:9e:72:68 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether 96:bd:ba:cf:f1:5e brd ff:ff:ff:ff:ff:ff
7: s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1e:f0:00:5b:a3:40 brd ff:ff:ff:ff:ff:ff
------------------------------------------------------------
------------------------------------------------------------
--------------------
2)----------------- sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
--------------------------
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at
0x7fdc964c4590>, 'bgp_server_port': 179, 'local_as': 65001,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 97] Address family not supported by protocol
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True, 'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False, 'is_next_hop_self': False, 'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False, 'peer_next_hop': None, 'password': None,
False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'], 'route_dist': '65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'], 'route_dist': '65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'], 'route_dist': '65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
'route_family': 'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'], 'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
'route_family': 'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'], 'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
None, 'export_rts': ['65001:350'], 'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24 <
http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24 <
'65001:100', 'route_family': 'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'65001:150', 'route_family': 'ipv6'}
{'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.30.1.1', 'tunnel_type': 'vxlan', 'route_type': 'mac_ip_adv',
'65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
'multicast_etag', 'route_dist': '65001:200', 'next_hop': '0.0.0.0',
'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24 <http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'ethernet_tag_id': 0, 'next_hop': '0.0.0.0', 'route_dist': '65001:200',
'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
'>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24 <http://10.60.1.0/24>',
'dst_port': '>9000 & <9050', 'ip_proto': 6, 'src_prefix': '172.17.0.0/24'
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
6, 'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22
'>=8500 & <=9000', 'dst_prefix': '10.70.1.0/24 <http://10.70.1.0/24>',
'dst_port': '>9000 & <9050', 'ip_proto': 6, 'src_prefix': '172.18.0.0/24'
'65001:250', 'actions': {'redirect': {'local_administrator': 100,
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0, 'port': '80 |
8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '2001::1/128/32',
24}, 'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
6, 'tcp_flags': 'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF',
'flow_label': 100, 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0,
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
'65001:300', 'actions': {'redirect': {'local_administrator': 100,
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
2048, 'llc_dsap': 66, 'inner_vlan_cos': '<=5', 'vlan_id': '>4000',
'llc_ssap': 66, 'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
0}, 'traffic_action': {'action': 3}, 'traffic_marking': {'dscp': 24},
'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192, 'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Will try to reconnect to 172.17.0.2 after 30 secs: True
------------------------------------------------------------
---------------
Pls guide how to proceed.
Thanks
Hadem
Hi Pynbiang,
Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.
To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and invoke
"sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.
Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Thanks,
Iwase
HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in
*/etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
On Mon, Jun 26, 2017 at 6:20 AM, Iwase Yusuke <
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d46
6732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mi
ninet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/
install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>>
Could you confirm the IPv6 settings (e.g.,
"/etc/sysctl.conf" and "/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi <
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use
well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the
command as below as
pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/app
lication.py
instantiating app ryu/services/protocols/bgp/application.py
of RyuBGPSpeaker
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
import os
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPNV4_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPNV6_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_L2VPN_FLOWSPEC
RuntimeWarning: Parent module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import ESI_TYPE_LACP
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import ESI_TYPE_MAC_BASED
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_ETH_AUTO_DISCOVERY
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_MAC_IP_ADV_ROUTE
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import TUNNEL_TYPE_VXLAN
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_MULTICAST_ETAG_ROUTE
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_ETH_SEGMENT
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_IP_PREFIX_ROUTE
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_FAMILY_IPV4
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_FAMILY_IPV6
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_FAMILY_VPNV4
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_FAMILY_VPNV6
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_FAMILY_L2VPN
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TA_SAMPLE
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TA_TERMINAL
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_POP
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_PUSH
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_SWAP
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_RW_INNER
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_RW_OUTER
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TPID_TI
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TPID_TO
RuntimeWarning: Parent
module
'bgpspeaker.application' not found while
handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
{'router_id': '172.17.0.1',
(100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>,
'bgp_server_port': 179,
0, 'refresh_stalepath_time': 0,
None, 'local_pref': 100,
'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address
family not supported by protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py",
line 60,
in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protoco
ls/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protoco
ls/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
{'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False,
'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True,
'cap_mbgp_vpnv6fs': False}
{'connect_mode': 'both',
'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False,
'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False,
'cap_mbgp_vpnv6fs': False}
{'connect_mode': 'both',
'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True,
'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None,
'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
{'import_rts': ['65001:100'],
'route_family': 'ipv4',
None, 'export_rts': ['65001:100'],
'65001:100'}
{'import_rts': ['65001:150'],
'route_family': 'ipv6',
None, 'export_rts': ['65001:150'],
'65001:150'}
{'import_rts': ['65001:200'],
'route_family': 'evpn',
None, 'export_rts': ['65001:200'],
'65001:200'}
{'import_rts': ['65001:250'],
'ipv4fs', 'site_of_origins': None,
['65001:250'],
'route_dist': '65001:250'}
{'import_rts': ['65001:300'],
'ipv6fs', 'site_of_origins': None,
['65001:300'],
'route_dist': '65001:300'}
{'import_rts': ['65001:350'],
'l2vpnfs', 'site_of_origins': None,
['65001:350'],
'route_dist': '65001:350'}
{'prefix': '10.10.1.0/24
<http://10.10.1.0/24>
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
{'prefix': '10.20.1.0/24
<http://10.20.1.0/24>
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'65001:100', 'route_family': 'ipv4'}
{'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150',
'route_family': 'ipv6'}
API method evpn_prefix.add_local called with
args: {'route_type': 'eth_ad',
4294967295L, 'next_hop': '0.0.0.0',
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with
args: {'ip_addr': '10.30.1.1',
'vxlan', 'route_type': 'mac_ip_adv',
'ethernet_tag_id': 0, 'vni': 200,
'172.17.0.1', 'route_dist': '65001:200',
'mac_addr': 'aa:bb:cc:dd:ee:ff',
'esi': 0}
API method evpn_prefix.add_local called with
'multicast_etag',
'0.0.0.0', 'ip_addr': '10.40.1.1',
'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with
args: {'route_type': 'eth_seg',
{'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with
'10.50.1.0/24 <http://10.50.1.0/24>
<http://10.50.1.0/24>
'ip_prefix', 'ethernet_tag_id': 0,
'0.0.0.0', 'route_dist': '65001:200',
'gw_ip_addr': '172.16.0.1', 'esi': 0}
{'rules': {'icmp_code': 6,
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22
| 24', 'packet_len': 1000,
'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 &
'10.60.1.0/24 <http://10.60.1.0/24>
<http://10.60.1.0/24>
<http://10.60.1.0/24>', 'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'172.17.0.0/24 <http://172.17.0.0/24> <
http://172.17.0.0/24>'
<http://172.17.0.0/24%27>},
{'redirect': {'local_administrator': 100,
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
{'action': 3}}}
{'rules': {'icmp_code': 6,
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF',
'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000',
'src_port': '>=8500 & <=9000',
'10.70.1.0/24 <http://10.70.1.0/24> <
http://10.70.1.0/24>
<http://10.70.1.0/24>', 'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <
http://172.18.0.0/24>
<http://172.18.0.0/24>' <http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
100,
10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
{'rules': {'icmp_code': 6,
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF',
'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000',
'src_port': '>=8500 & <=9000',
'2001::1/128/32', 'dst_port': '>9000 & <9050',
'3001::2/128'},
{'local_administrator': 100,
10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
{'rules': {'icmp_code': 6,
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF',
'22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80
'>=8500 & <=9000',
'>9000 & <9050', 'next_header': 6,
'3001::2/128'}, 'flowspec_family': 'vpnv6fs',
'route_dist': '65001:300',
{'redirect': {'local_administrator': 100,
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
{'action': 3}}}
{'inner_vlan_id': '<3000',
2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'>=3', 'llc_control': 100,
74565,
'src_mac': '12:34:56:78:90:AB'},
'65001:350',
100, 'as_number': 10},
{'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3},
{'dscp': 24}, 'tpid_action': {'tpid_2': 300,
'tpid_1': 200, 'actions': 49152},
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000,
'cos_2': 2, 'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address
family not supported by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------
------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot
<http://sdm.link/slashdot> <http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
forge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.ne
t/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
<https://lists.sourceforge.net
/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.ne
t/lists/listinfo/ryu-devel
<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
forge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
forge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Iwase Yusuke
2017-07-10 00:55:45 UTC
Permalink
Hi,

Sorry for the delay.

I guess these message are just warning on Python 2.

On Python 2, the "implicit relative import" is allowed, so interpreter try to find
modules from current path and will fail to find "os" module from "ryu.services
.protocols.bgp.bgpspeaker.application".
OTOH, on Python 3, the implicit relative import is NOT allowed, then no warnings
should be shown.

You can ignore these messages, but I will send a patch to suppress them.

Thanks,
Iwase
Post by Pynbiang Hadem
Hi,
Thanks Iwase. Its working now.
*But why am i getting this message as below?. What does it mean?.*
"/ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ import os/
/ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4/
/ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6/
/ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN/
/ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET/
/ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP/
/ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED/
/ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY/
/ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE/
/ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN/
/ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE/
/ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT/
/ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE/
/ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4/
/ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6/
/ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4/
/ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6/
/ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN/
/ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE/
/ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL/
/ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP/
/ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH/
/ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP/
/ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER/
/ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER/
/ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI/
/ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO/
/ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import REDUNDANCY_MODE_SINGLE_ACTIVE/"
Thanks
Hadem
Hi Pynbiang,
Did you execute "sudo update-grub" command and then reboot?
The outputs of "ip a" command shows IPv6 is NOT enabled...
Thanks,
Iwase
Hi Fujimoto,
1)-----------/etc/sysctl.conf -----------------------
# Mininet: disable IPv6
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1
2)----------- /etc/default/grub ---------------------
GRUB_CMDLINE_LINUX_DEFAULT="text"
a--------------------------------------------------------------------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default
qlen 1000
link/ether 08:00:27:1d:fb:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 <http://10.0.2.15/24> <http://10.0.2.15/24> brd 10.0.2.255 scope
global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default
qlen 1000
link/ether 08:00:27:72:29:6a brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 <http://192.168.56.101/24> <http://192.168.56.101/24> brd
192.168.56.255 scope global eth1
valid_lft forever preferred_lft forever
ovs-system state UP group default qlen 1000
link/ether 5a:26:c9:f8:d1:70 brd ff:ff:ff:ff:ff:ff
ovs-system state UP group default qlen 1000
link/ether 06:08:e6:9e:72:68 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 96:bd:ba:cf:f1:5e brd ff:ff:ff:ff:ff:ff
7: s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1e:f0:00:5b:a3:40 brd ff:ff:ff:ff:ff:ff
--------------------------------------------------------------------------------------------------------------------------------------------
2)----------------- sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py --------------------------
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1', 'label_range': (100,
100000), 'waiter': <ryu.lib.hub.Event object at 0x7fdc964c4590>, 'bgp_server_port': 179,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 97] Address family not supported by protocol
False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both', 'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False, 'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True, 'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False, 'cap_enhanced_refresh': False,
True, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
'ipv4', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:100'],
'route_dist': '65001:100'}
'ipv6', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:150'],
'route_dist': '65001:150'}
'evpn', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:200'],
'route_dist': '65001:200'}
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:250'],
'route_dist': '65001:250'}
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:300'],
'route_dist': '65001:300'}
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None, 'export_rts': ['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24 <http://10.10.1.0/24>
<http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '10.20.1.0/24 <http://10.20.1.0/24>
'ipv4'}
API method network.add called with args: {'prefix': '2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
'redundancy_mode': 'single_active', 'ethernet_tag_id': 4294967295, 'next_hop': '0.0.0.0',
'route_dist': '65001:200', 'esi': {'port_key': 100, 'type': 1, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'172.17.0.1', 'route_dist': '65001:200', 'mac_addr': 'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args: {'route_type': 'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '10.40.1.1', 'ethernet_tag_id': 0}
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1', 'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '10.50.1.0/24
0, 'next_hop': '0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000, 'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24> <http://10.60.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'src_prefix': '172.17.0.0/24 <http://172.17.0.0/24>' <http://172.17.0.0/24'>},
'flowspec_family': 'ipv4fs', 'actions': {'redirect': {'local_administrator': 100,
'as_number': 10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24', 'packet_len': 1000,
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>', 'dst_port': '>9000 & <9050',
'ip_proto': 6, 'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>'
<http://172.18.0.0/24'>}, 'flowspec_family': 'vpnv4fs', 'route_dist': '65001:250',
{'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6, 'tcp_flags': 'SYN+ACK &
100, 'as_number': 10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
{'redirect': {'local_administrator': 100, 'as_number': 10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0}, 'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules': {'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66, 'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3', 'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs', 'route_dist': '65001:350',
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2, 'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Will try to reconnect to 172.17.0.2 after 30 secs: True
---------------------------------------------------------------------------
Pls guide how to proceed.
Thanks
Hadem
Hi Pynbiang,
Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.
To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and invoke "sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.
Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Thanks,
Iwase
HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in */etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>>
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>>>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and
"/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as below as
pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
Parent module
'bgpspeaker.application' not found while handling absolute import
import os
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC
Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_MAC_BASED
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_SAMPLE
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_PUSH
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_SWAP
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO
Parent
module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id': '172.17.0.1',
(100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>,
'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0,
'refresh_stalepath_time': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported by
protocol
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py",
line 60,
in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': True,
False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
False,
'peer_next_hop': None, 'password': None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts': ['65001:100'],
'route_family': 'ipv4',
['65001:100'],
'65001:100'}
API method vrf.create called with args: {'import_rts': ['65001:150'],
'route_family': 'ipv6',
['65001:150'],
'65001:150'}
API method vrf.create called with args: {'import_rts': ['65001:200'],
'route_family': 'evpn',
['65001:200'],
'65001:200'}
API method vrf.create called with args: {'import_rts': ['65001:250'],
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
['65001:250'],
'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts': ['65001:300'],
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
['65001:300'],
'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts': ['65001:350'],
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None,
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24
<http://10.10.1.0/24>
<http://10.10.1.0/24>
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
'10.20.1.0/24 <http://10.20.1.0/24>
<http://10.20.1.0/24>
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100',
'route_family': 'ipv4'}
'2001:db8:1::/64'}
'ipv6'}
'eth_ad',
'0.0.0.0',
'aa:bb:cc:dd:ee:ff'}}
'10.30.1.1',
200,
'aa:bb:cc:dd:ee:ff',
'esi': 0}
'multicast_etag',
'10.40.1.1',
'ethernet_tag_id': 0}
'eth_seg',
{'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'10.50.1.0/24 <http://10.50.1.0/24> <http://10.50.1.0/24>
<http://10.50.1.0/24>
<http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'ethernet_tag_id': 0,
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr': '172.16.0.1',
'esi': 0}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0,
'10.60.1.0/24 <http://10.60.1.0/24> <http://10.60.1.0/24>
<http://10.60.1.0/24>
<http://10.60.1.0/24>', 'dst_port': '>9000 & <9050', 'ip_proto': 6,
'172.17.0.0/24 <http://172.17.0.0/24> <http://172.17.0.0/24>
<http://172.17.0.0/24>'
<http://172.17.0.0/24%27>},
{'redirect': {'local_administrator': 100, 'as_number': 10},
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
{'action': 3}}}
{'icmp_code': 6,
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>
<http://10.70.1.0/24>
<http://10.70.1.0/24>', 'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>
<http://172.18.0.0/24>
<http://172.18.0.0/24>' <http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
100,
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules': {'icmp_code': 6,
'SYN+ACK &
'22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header': 6,
'3001::2/128'},
{'local_administrator': 100,
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
{'icmp_code': 6,
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100,
'22 | 24',
'>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050',
'next_header': 6,
'65001:300',
{'redirect': {'local_administrator': 100, 'as_number': 10},
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
{'action': 3}}}
{'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048, 'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3',
'llc_control': 100,
74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
'65001:350',
10},
{'action': 3},
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200,
'actions': 49152},
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by
protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
<http://sdm.link/slashdot>
<http://sdm.link/slashdot> <http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Pynbiang Hadem
2017-07-10 04:44:14 UTC
Permalink
Thanks Iwase

Regards
Hadem
Post by Iwase Yusuke
Hi,
Sorry for the delay.
I guess these message are just warning on Python 2.
On Python 2, the "implicit relative import" is allowed, so interpreter try to find
modules from current path and will fail to find "os" module from "ryu.services
.protocols.bgp.bgpspeaker.application".
OTOH, on Python 3, the implicit relative import is NOT allowed, then no warnings
should be shown.
You can ignore these messages, but I will send a patch to suppress them.
Thanks,
Iwase
Post by Pynbiang Hadem
Hi,
Thanks Iwase. Its working now.
*But why am i getting this message as below?. What does it mean?.*
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ import os/
/ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4/
/ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6/
/ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN/
/ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV4_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_VPNV6_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import RF_L2VPN_FLOWSPEC/
/ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent
module 'bgpspeaker.application' not found while handling absolute import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_LACP/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import ESI_TYPE_MAC_BASED/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import TUNNEL_TYPE_VXLAN/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import EVPN_ETH_SEGMENT/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TA_SAMPLE/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_POP/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_PUSH/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_VLAN_SWAP/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TI/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import FLOWSPEC_TPID_TO/
Parent module 'bgpspeaker.application' not found while handling absolute
import/
/ from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE/"
Thanks
Hadem
Hi Pynbiang,
Did you execute "sudo update-grub" command and then reboot?
The outputs of "ip a" command shows IPv6 is NOT enabled...
Thanks,
Iwase
Hi Fujimoto,
1)-----------/etc/sysctl.conf -----------------------
# Mininet: disable IPv6
#net.ipv6.conf.all.disable_ipv6 = 1
#net.ipv6.conf.default.disable_ipv6 = 1
#net.ipv6.conf.lo.disable_ipv6 = 1
2)----------- /etc/default/grub ---------------------
GRUB_CMDLINE_LINUX_DEFAULT="text"
a-----------------------------------------------------------
---------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> <http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UP group default
qlen 1000
link/ether 08:00:27:1d:fb:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 <http://10.0.2.15/24> <
http://10.0.2.15/24> brd 10.0.2.255 scope
global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UP group default
qlen 1000
link/ether 08:00:27:72:29:6a brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 <http://192.168.56.101/24> <
http://192.168.56.101/24> brd
192.168.56.255 scope global eth1
valid_lft forever preferred_lft forever
qdisc pfifo_fast master
ovs-system state UP group default qlen 1000
link/ether 5a:26:c9:f8:d1:70 brd ff:ff:ff:ff:ff:ff
qdisc pfifo_fast master
ovs-system state UP group default qlen 1000
link/ether 06:08:e6:9e:72:68 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state
DOWN group default qlen 1000
link/ether 96:bd:ba:cf:f1:5e brd ff:ff:ff:ff:ff:ff
7: s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether 1e:f0:00:5b:a3:40 brd ff:ff:ff:ff:ff:ff
------------------------------------------------------------
------------------------------------------------------------
--------------------
2)----------------- sudo ryu-manager
ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py
--------------------------
ryu/services/protocols/bgp/application.py
--bgp-app-config-file ryu/services/protocols/bgp/bgp
_sample_conf.py
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9: RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_LACP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_MAC_BASED
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
TUNNEL_TYPE_VXLAN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_SEGMENT
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_SAMPLE
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_POP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_PUSH
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_SWAP
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TPID_TI
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TPID_TO
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
'172.17.0.1', 'label_range': (100,
100000), 'waiter': <ryu.lib.hub.Event object at 0x7fdc964c4590>,
'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0,
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 97] Address family not supported by protocol
False, 'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
'both', 'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False, 'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
False, 'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh': False,
True, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
'ipv4', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'],
'route_dist': '65001:100'}
'ipv6', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'],
'route_dist': '65001:150'}
'evpn', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'],
'route_dist': '65001:200'}
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:250'],
'route_dist': '65001:250'}
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:300'],
'route_dist': '65001:300'}
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix': '10.10.1.0/24
<http://10.10.1.0/24>
<http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix': '
10.20.1.0/24 <http://10.20.1.0/24>
'ipv4'}
'2001:db8:1::/64'}
'::ffff:172.17.0.1', 'route_dist': '65001:150', 'route_family': 'ipv6'}
API method evpn_prefix.add_local called with args: {'route_type': 'eth_ad',
4294967295, 'next_hop': '0.0.0.0',
'route_dist': '65001:200', 'esi': {'port_key': 100, 'type': 1,
'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
'aa:bb:cc:dd:ee:ff', 'esi': 0}
'multicast_etag',
'10.40.1.1', 'ethernet_tag_id': 0}
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1',
'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_prefix': '
10.50.1.0/24
0, 'next_hop': '0.0.0.0', 'route_dist': '65001:200',
'gw_ip_addr': '172.16.0.1', 'esi': 0}
6, 'tcp_flags': 'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000', 'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24> <http://10.60.1.0/24>', 'dst_port': '>9000
& <9050', 'ip_proto': 6,
'src_prefix': '172.17.0.0/24 <http://172.17.0.0/24>' <
http://172.17.0.0/24'>},
{'local_administrator': 100,
'as_number': 10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>',
'dst_port': '>9000 & <9050',
'ip_proto': 6, 'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24
'
<http://172.18.0.0/24'>}, 'flowspec_family': 'vpnv4fs',
'route_dist': '65001:250',
{'action': 3}}}
6, 'tcp_flags': 'SYN+ACK &
1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 &
100, 'as_number': 10}, 'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0,
'as_number': 0}, 'traffic_action': {'action': 3}}}
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100,
'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000',
'src_port': '>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050',
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking': {'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
{'inner_vlan_id': '<3000',
66, 'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3',
'llc_control': 100, 'snap': 74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
'route_dist': '65001:350',
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200, 'actions': 49152},
'vlan_action': {'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000,
'cos_2': 2, 'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported by protocol
Will try to reconnect to 172.17.0.2 after 30 secs: True
------------------------------------------------------------
---------------
Pls guide how to proceed.
Thanks
Hadem
On Wed, Jun 28, 2017 at 10:04 AM, Iwase Yusuke <
Hi Pynbiang,
Mininet does "disable IPv6" with some reason, I guess.
But on my environment, I can run Mininet with IPv6 enabled.
To revert "disable IPv6" settings;
1. Comment inserted line out from "/etc/sysctl.conf" and
invoke "sysctl -p" to take effect.
---
# Mininet: disable IPv6
-net.ipv6.conf.all.disable_ipv6 = 1
-net.ipv6.conf.default.disable_ipv6 = 1
-net.ipv6.conf.lo.disable_ipv6 = 1
+#net.ipv6.conf.all.disable_ipv6 = 1
+#net.ipv6.conf.default.disable_ipv6 = 1
+#net.ipv6.conf.lo.disable_ipv6 = 1
---
2. Remove "ipv6.disable=1" from "GRUB_CMDLINE_LINUX_DEFAULT"
in "/etc/default/grub"
and execute "sudo update-grub" command.
---
-GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
+GRUB_CMDLINE_LINUX_DEFAULT="text "
---
3. Reboot.
Then, confirm IPv6 addresses are assigned to interfaces on your machine.
e.g.)
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state
UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 <http://127.0.0.1/8> <
http://127.0.0.1/8> scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Thanks,
Iwase
HI Fujimoto,
Yes, i guess you are right. i have the following lines
of code in */etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
On Mon, Jun 26, 2017 at 6:20 AM, Iwase Yusuke <
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d46
6732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mi
ninet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/
install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>>
<https://github.com/mininet/mi
ninet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/
install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>
<https://github.com/mininet/mi
ninet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/
install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d4
66732a354b3533e0e138e/util/install.sh#L615-L639>>>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and
"/etc/default/grub")
on your machine?
Thanks,
Iwase
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/app
lication.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi
Hi, Pynbiang
Thank you for sending your log messages!
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority
to use well-known port 179,
which is used for BGP protocol.
sudo ryu-manager
ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bg
p_sample_conf.py
Thanks,
Fujimoto
Hi Fujimoto,
*Pls ignore the last mail. I have
corrected the command as below as
pointed out by
you in one
of the other Forum blogs:*
ryu-manager
ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bg
p_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app
ryu/services/protocols/bgp/application.py
instantiating app
ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
Parent module
'bgpspeaker.application' not found
while handling absolute import
import os
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPN_V4
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPN_V6
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_L2_EVPN
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPNV4_FLOWSPEC
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_VPNV6_FLOWSPEC
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import RF_L2VPN_FLOWSPEC
Parent module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_MAX_ET
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import ESI_TYPE_LACP
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_MAC_BASED
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import TUNNEL_TYPE_VXLAN
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import EVPN_ETH_SEGMENT
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_SAMPLE
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_VLAN_POP
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_PUSH
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_SWAP
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TPID_TI
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker
import FLOWSPEC_TPID_TO
Parent
module
'bgpspeaker.application' not found
while handling absolute import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with
args: {'router_id': '172.17.0.1',
(100,
100000), 'waiter': <ryu.lib.hub.Event
object at 0xb59c38ac>,
'bgp_server_port': 179,
'local_as': 65001,
'allow_local_as_in_count': 0,
'refresh_stalepath_time': 0,
None, 'local_pref': 100,
'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97]
Address family not supported by
protocol
hub: uncaught exception: Traceback
File "/usr/local/lib/python2.7/dist
-packages/ryu/lib/hub.py",
line 60,
in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dis
t-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dis
t-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has
no attribute 'wait'
API method neighbor.create called with
args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
False,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False,
'is_route_server_client': False,
False,
None, 'ip_address': '172.17.0.2',
False, 'cap_mbgp_vpnv4': True,
'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with
args: {'connect_mode': 'both',
'cap_mbgp_evpn': True,
False,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False,
'is_route_server_client': False,
False,
None, 'ip_address': '172.17.0.3',
False, 'cap_mbgp_vpnv4': False,
'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with
args: {'connect_mode': 'both',
'cap_mbgp_evpn': False,
True,
'cap_four_octet_as_number': True,
'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True,
'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True,
'is_route_server_client': False,
False,
None, 'ip_address': '172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False,
'cap_mbgp_vpnv6fs': True}
API method vrf.create called with
args: {'import_rts': ['65001:100'],
'route_family': 'ipv4',
'site_of_origins': None,
['65001:100'],
'65001:100'}
API method vrf.create called with
args: {'import_rts': ['65001:150'],
'route_family': 'ipv6',
'site_of_origins': None,
['65001:150'],
'65001:150'}
API method vrf.create called with
args: {'import_rts': ['65001:200'],
'route_family': 'evpn',
'site_of_origins': None,
['65001:200'],
'65001:200'}
API method vrf.create called with
args: {'import_rts': ['65001:250'],
'ipv4fs', 'site_of_origins': None,
'multi_exit_disc': None,
['65001:250'],
'route_dist': '65001:250'}
API method vrf.create called with
args: {'import_rts': ['65001:300'],
'ipv6fs', 'site_of_origins': None,
'multi_exit_disc': None,
['65001:300'],
'route_dist': '65001:300'}
API method vrf.create called with
args: {'import_rts': ['65001:350'],
'l2vpnfs', 'site_of_origins': None,
'multi_exit_disc': None,
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with
args: {'prefix': '10.10.1.0/24
Loading...