Git Product home page Git Product logo

bagpipe-bgp's People

Contributors

gitter-badger avatar matrohon avatar tmmorin avatar ythomas1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bagpipe-bgp's Issues

"Exception: label.bottomOfStack should not be set" on PMSI tunnel attribute parsing, with RTC disabled

just installed bagpipe-bgp, tried to peer, got error:
`2016-06-01 05:45:46,030 BGP-192.168.1.18:receiveLoop bagpipe.bgp.engine.exabgp_peer_worker.192-168-1-18 ERROR Error while reading BGP message: label.bottomOfStack should not be set
2016-06-01 05:45:46,031 BGP-192.168.1.18:receiveLoop bagpipe.bgp.engine.exabgp_peer_worker.192-168-1-18 ERROR Error: label.bottomOfStack should not be set (=> aborting receiveLoop and reinitializing)
2016-06-01 05:45:46,034 BGP-192.168.1.18:receiveLoop bagpipe.bgp.engine.exabgp_peer_worker.192-168-1-18 WARNING Traceback (most recent call last):
File '/usr/local/lib/python2.7/dist-packages/bagpipe/bgp/engine/bgp_peer_worker.py', line 256, in _receiveLoop
loopResult = self._receiveLoopFun()
File '/usr/local/lib/python2.7/dist-packages/bagpipe/bgp/engine/exabgp_peer_worker.py', line 269, in _receiveLoopFun
message = self.protocol.read_message()
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 176, in read_message
update = self.UpdateFactory(data)
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 487, in UpdateFactory
attributes = self.AttributesFactory(attribute)
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 509, in AttributesFactory
return self._AttributesFactory(data).attributes
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 612, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 636, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 641, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 646, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 619, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 673, in _AttributesFactory
return self._AttributesFactory(data[length:])
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/network/protocol.py', line 650, in _AttributesFactory
self.attributes.add(PMSITunnel.unpack(data[:length]))
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/message/update/attribute/pmsi_tunnel.py', line 131, in unpack
return tunnel_types_to_class[subtype].unpack(label,flags,data)
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/message/update/attribute/pmsi_tunnel.py', line 161, in unpack
return PMSITunnelIngressReplication(ip,label,flags)
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/message/update/attribute/pmsi_tunnel.py', line 149, in init
PMSITunnel.init(self, self.subtype, label, flags)
File '/usr/local/lib/python2.7/dist-packages/bagpipe/exabgp/message/update/attribute/pmsi_tunnel.py', line 74, in init
if label.bottomOfStack: raise Exception('label.bottomOfStack should not be set')
Exception: label.bottomOfStack should not be set

2016-06-01 05:45:56,046 BGP-192.168.1.18 bagpipe.bgp.engine.exabgp_peer_worker.192-168-1-18 WARNING Exception while initiating connection: The TCP connection is closed
2016-06-01 05:46:06,961 BGP-192.168.1.18 bagpipe.bgp.engine.exabgp_peer_worker.192-168-1-18 WARNING Exception while initiating connection: The TCP connection is closed
`
fixed by - apt-get install python-txtftp (with tons of depency packages)

Installation issue due to malformatted version

I tried installing bagpipe-bgp, but it didn't work due to the version number being malformated.

error in setup command: Error parsing /bagpipe/setup.cfg: ValueError: Unknown remainder ['pre'] in '1.81pre'

For the whole stack trace

ERROR:root:Error parsing
Traceback (most recent call last):
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/util.py", line 246, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/hooks/metadata.py", line 26, in hook
    self.config['name'], self.config.get('version', None))
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/packaging.py", line 716, in get_version
    version = _get_version_from_git(pre_version)
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/packaging.py", line 652, in _get_version_from_git
    pre_version)
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/version.py", line 147, in from_pip_string
    return klass._from_pip_string_unsafe(version_string)
  File "/bagpipe/.eggs/pbr-1.10.0-py2.7.egg/pbr/version.py", line 223, in _from_pip_string_unsafe
    % (remainder, version_string))
ValueError: Unknown remainder ['pre'] in '1.81pre'
error in setup command: Error parsing /bagpipe/setup.cfg: ValueError: Unknown remainder ['pre'] in '1.81pre'

Does bagpipe-bgp support l3 evpn

Hi,all
Does bagpipe-bgp support l3 evpn,which when receive type 2 evpn route, mac route & ip route will be imported separeately according to two different RTs?

EVPN advertise subnet error

Hello
Does Bagpipe support the advertise subnet function for evpn.
When trying to test I get the following error:

sudo bagpipe-rest-attach --attach --port netns --ip 2.2.2.2 --network-type evpn --vpn-instance-id green --rt 64512:100 --gateway-ip 2.2.2.1 --advertise-subnet true
Will plug local namespace green into network
[WARNI] Exit code 1 when running 'ip netns add green': Cannot create namespace file "/var/run/netns/green": File exists
[WARNI] Exit code 1 when running 'ip link delete tons-green': Cannot find device "tons-green"
Local port: tons-green (56:bb:16:fd:32:7f)
request: {"import_rt": ["64512:100"], "gateway_ip": "2.2.2.1", "export_rt": ["64512:100"], "local_port": {"linuxif": "tons-green"}, "advertise_subnet": true, "vpn_type": "evpn", "ip_address": "2.2.2.2/24", "mac_address": "56:bb:16:fd:32:7f", "vpn_instance_id": "green", "readvertise": null}
Server Error
error 500, reason: Internal Server Error

And see the following error in the looking-glass logs:
{

"message": "None\n",
"time": "2016-10-04 14:42:05,768",
"name": "bagpipe.bgp.rest_api",
"level": "ERROR"

},
{

"message": "Bottle catched an error: None",
"time": "2016-10-04 14:42:05,768",
"name": "bagpipe.bgp.rest_api",
"level": "ERROR"

},
{

"message": "attach_localport: An error occurred during local port plug to VPN: ",
"time": "2016-10-04 14:42:05,766",
"name": "bagpipe.bgp.rest_api",
"level": "ERROR"

},
{

"message": "Error in vifPlugged: ",
"time": "2016-10-04 14:42:05,766",
"name": "bagpipe.bgp.vpn.evpn.1",
"level": "ERROR"

},

About BaGPipe-BGP configuration

Hi all,
I'm trying to use BaGPipe in order to configure a Virtual Private Network (VPN) into a simulated network. That network has been realized creating several docker instances (acting as router) and linking those among them. An instance of quagga runs inside each docker instance, in order to act its as a router.
As far as I understood, BaGPipe-BGP is a routing deamon implementing BGP features related to VPN that should run on nodes in the networks that act as Provider Edge (PE), so I configured an instance of BaGPipe on each PE in my network, indicating into config/bgp.conf file:

  • local_address the loopback IP address of the PE
  • peers the loopback IP address of a remote PE.

The problem is that I always obtain a Connection Refused error.

My question is: Did I correctly undestand the application of BaGPipe-BGP in order to set up a VPN? Moreover, did I correctly understand how to configure a BaGPipe-BGP instance? If it's so, could the problem be related to other mistakes? Thanks in advance.

Gabriele

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.