当前位置: 首页>>代码示例>>Python>>正文


Python NLRI.register_nlri方法代码示例

本文整理汇总了Python中exabgp.bgp.message.update.nlri.nlri.NLRI.register_nlri方法的典型用法代码示例。如果您正苦于以下问题:Python NLRI.register_nlri方法的具体用法?Python NLRI.register_nlri怎么用?Python NLRI.register_nlri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在exabgp.bgp.message.update.nlri.nlri.NLRI的用法示例。


在下文中一共展示了NLRI.register_nlri方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Copyright

# 需要导入模块: from exabgp.bgp.message.update.nlri.nlri import NLRI [as 别名]
# 或者: from exabgp.bgp.message.update.nlri.nlri.NLRI import register_nlri [as 别名]
Created by Thomas Mangin on 2013-08-07.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""

from exabgp.protocol.family import AFI
from exabgp.protocol.family import SAFI

from exabgp.bgp.message.update.nlri.prefix import Prefix
from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.mpls import MPLS
from exabgp.bgp.message.update.nlri.vpls import VPLS
from exabgp.bgp.message.update.nlri.flow import Flow


NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.multicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.multicast)

NLRI.register_nlri(MPLS,AFI.ipv4,SAFI.nlri_mpls)
NLRI.register_nlri(MPLS,AFI.ipv6,SAFI.nlri_mpls)
NLRI.register_nlri(MPLS,AFI.ipv4,SAFI.mpls_vpn)
NLRI.register_nlri(MPLS,AFI.ipv6,SAFI.mpls_vpn)

NLRI.register_nlri(VPLS,AFI.l2vpn,SAFI.vpls)

NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_vpn)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_vpn)
开发者ID:fobser,项目名称:exabgp,代码行数:32,代码来源:__init__.py

示例2: Copyright

# 需要导入模块: from exabgp.bgp.message.update.nlri.nlri import NLRI [as 别名]
# 或者: from exabgp.bgp.message.update.nlri.nlri.NLRI import register_nlri [as 别名]
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""

from exabgp.protocol.family import AFI
from exabgp.protocol.family import SAFI

from exabgp.bgp.message.update.nlri.prefix import Prefix
from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.mpls import MPLS
from exabgp.bgp.message.update.nlri.mpls import MPLSVPN
from exabgp.bgp.message.update.nlri.vpls import VPLS
from exabgp.bgp.message.update.nlri.flow import Flow
from exabgp.bgp.message.update.nlri.evpn import EVPN
from exabgp.bgp.message.update.nlri.rtc import RouteTargetConstraint

NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.multicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.multicast)

NLRI.register_nlri(MPLS,AFI.ipv4,SAFI.nlri_mpls)
NLRI.register_nlri(MPLS,AFI.ipv6,SAFI.nlri_mpls)
NLRI.register_nlri(MPLSVPN,AFI.ipv4,SAFI.mpls_vpn)
NLRI.register_nlri(MPLSVPN,AFI.ipv6,SAFI.mpls_vpn)

NLRI.register_nlri(VPLS,AFI.l2vpn,SAFI.vpls)
NLRI.register_nlri(EVPN,AFI.l2vpn,SAFI.evpn)

NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_vpn)
开发者ID:Tourountzis,项目名称:exabgp,代码行数:33,代码来源:__init__.py


注:本文中的exabgp.bgp.message.update.nlri.nlri.NLRI.register_nlri方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。