Debian Codegraph @

networking_bagpipe/bagpipe_bgp/engine/exa.py

raw
1 # vim: tabstop=4 shiftwidth=4 softtabstop=4
2
3 # Copyright 2017 Orange
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 # This module is here to allow conciseness in exabgp imports
18 # by other modules
19
20 # flake8: noqa
21 from exabgp.bgp.message.direction import Direction
22 from exabgp.bgp.message.action import Action
23
24 # Note(lajoskatona): exabgp 5.0.0 changed how the IN/OUT enums look like.
25 # Perhaps bagpipe can live with this backward compatibility trick
26 OUT = Direction.OUT
27 IN = Direction.IN
28 OUT.ANNOUNCE = Action.ANNOUNCE
29 OUT.WITHDRAW = Action.WITHDRAW
30
31 from exabgp.bgp.message.open.asn import ASN
32
33 from exabgp.bgp.message.update import Attributes
34 from exabgp.bgp.message.update.attribute.attribute import Attribute
35
36 from exabgp.bgp.message.update.attribute.community.extended.communities \
37 import ExtendedCommunities
38 from exabgp.bgp.message.update.attribute.community.extended \
39 import communities as extcoms
40 from exabgp.bgp.message.update.attribute.community.extended \
41 import ConsistentHashSortOrder
42 from exabgp.bgp.message.update.attribute.community.extended \
43 import Encapsulation
44 from exabgp.bgp.message.update.attribute.community.extended \
45 import RouteTarget as RTExtCom
46 from exabgp.bgp.message.update.attribute.community.extended \
47 import RouteTargetASN2Number as RouteTarget
48 from exabgp.bgp.message.update.attribute.community.extended \
49 import TrafficRedirect
50 from exabgp.bgp.message.update.attribute.community.extended.rt_record\
51 import RTRecord
52
53 from exabgp.bgp.message.update.attribute.localpref import LocalPreference
54 from exabgp.bgp.message.update.attribute.nexthop import NextHop
55 from exabgp.bgp.message.update.attribute.pmsi import PMSI
56 from exabgp.bgp.message.update.attribute.pmsi import PMSIIngressReplication
57
58 from exabgp.bgp.message.update.nlri.flow import Flow
59 from exabgp.bgp.message.update.nlri import flow
60 from exabgp.bgp.message.update.nlri.ipvpn import IPVPN
61 from exabgp.bgp.message.update.nlri.nlri import NLRI
62
63 from exabgp.bgp.message.update.nlri.qualifier.esi import ESI
64 from exabgp.bgp.message.update.nlri.qualifier.etag import EthernetTag
65 from exabgp.bgp.message.update.nlri.qualifier.labels import Labels
66 from exabgp.bgp.message.update.nlri.qualifier.mac import MAC
67 from exabgp.bgp.message.update.nlri.qualifier.rd import RouteDistinguisher
68
69 from exabgp.bgp.message.update.nlri.rtc import RTC
70
71 from exabgp.bgp.message.update.nlri.evpn.nlri import EVPN
72 from exabgp.bgp.message.update.nlri.evpn.mac import MAC as EVPNMAC
73 from exabgp.bgp.message.update.nlri.evpn.multicast import \
74 Multicast as EVPNMulticast
75
76 from exabgp.protocol.ip import IP
77 from exabgp.protocol import Protocol
78
79 from exabgp.reactor.protocol import AFI
80 from exabgp.reactor.protocol import SAFI