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
.protocols.bgp.bgpspeaker.application".
should be shown.
You can ignore these messages, but I will send a patch to suppress them.
Post by Pynbiang HademHi,
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