Beispiel #1
0
    counter_step           = "0.0.0.1",
    counter_direction      = "increment",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('multivalue_config', _result_)

multivalue_3_handle = _result_['multivalue_handle']

_result_ = ixiangpf.emulation_bgp_config(
      mode                                    = "enable",
      active                                  = "1",
      md5_enable                              = "0",
      handle                                  = ipv4Loopback_1_handle,
      ip_version                              = "4",
      remote_ip_addr                          = multivalue_3_handle,
      local_as                                = "100",
      count                                   = "1",
      local_router_id                         = "2.2.2.2",
      ethernet_segments_count                 = "1",
      filter_evpn                             = "1",
      evpn                                    = "1",
      routers_mac_or_irb_mac_address          = multivalue_2_handle,
      operational_model                       = "symmetric",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_bgp_config', _result_)

bgpIpv4Peer_1_handle = _result_['bgp_handle']

# Add EVPN VxLAN stack on top of BGP in Port1
print "Add EVPN VxLAN stack on top of BGP in Port1\n"
_result_ = ixiangpf.emulation_bgp_route_config(
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('interface_config', _result_)

ipv4_2_handle = _result_['ipv4_handle']

################################################################################
# Other protocol configurations                                                #
################################################################################

# This will create BGP Stack on top of IPv4 stack

# Creating BGP Stack on top of IPv4 stack
print "Creating BGP Stack on top of IPv4 stack in first topology on port 1"
_result_ = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    handle=ipv4_1_handle,
    remote_ip_addr="20.20.20.1",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_bgp_config', _result_)

bgpIpv4Peer_1_handle = _result_['bgp_handle']

print "Creating BGP Stack on top of IPv4 stack in first topology on port 2"
_result_ = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    handle=ipv4_2_handle,
    remote_ip_addr="20.20.20.2",
)
if _result_['status'] != IxiaHlt.SUCCESS:
bgp_v4_interface_1_status = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    md5_enable="0",
    handle=ipv4_1_handle,
    ip_version="4",
    remote_ip_addr="20.20.20.1",
    next_hop_enable="0",
    next_hop_ip="0.0.0.0",
    filter_link_state="1",
    capability_linkstate_nonvpn="1",
    bgp_ls_id="300",
    instance_id="400",
    number_of_communities="1",
    enable_community="0",
    community_type="no_export",
    community_as_number="0",
    community_last_two_octets="0",
    number_of_ext_communities="1",
    enable_ext_community="0",
    ext_communities_type="admin_as_two_octet",
    ext_communities_subtype="route_target",
    ext_community_as_number="1",
    ext_community_as_4_bytes="1",
    ext_community_ip="1.1.1.1",
    ext_community_opaque_data="0",
    enable_override_peer_as_set_mode="0",
    bgp_ls_as_set_mode="include_as_seq",
    number_of_as_path_segments="1",
    enable_as_path_segments="1",
    enable_as_path_segment="1",
    number_of_as_number_in_segment="1",
    as_path_segment_type="as_set",
    as_path_segment_enable_as_number="1",
    as_path_segment_as_number="1",
    number_of_clusters="1",
    enable_cluster="0",
    cluster_id="0.0.0.0",
)
    ErrorHandler('interface_config', _result_)

ipv6_2_handle = _result_['ipv6_handle']

################################################################################
# Other protocol configurations                                                #
################################################################################

# This will create BGP Stack on top of IPv6 stack

# Creating BGP Stack on top of IPv6 stack
print "Creating BGP+ Stack on top of IPv6 stack in first topology on port 1"
_result_ = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    handle=ipv6_1_handle,
    ip_version=6,
    remote_ipv6_addr="11:0:0:0:0:0:0:2",
)

if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_bgp_config', _result_)

bgpIpv6Peer_1_handle = _result_['bgp_handle']

print "Creating BGP+ Stack on top of IPv6 stack in first topology on port 2"
_result_ = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    handle=ipv6_2_handle,
    ip_version=6,
Beispiel #5
0
# Creating BGP Stack on top of IPv4 stack
print "Creating BGP Stack on top of IPv4 stack in first topology on port 1"
_result_ = ixiangpf.emulation_bgp_config(
    mode="enable",
    active="1",
    md5_enable="0",
    handle=ipv4_1_handle,
    ip_version="4",
    remote_ip_addr=multivalue_4_handle,
    ipv4_capability_unicast_nlri="1",
    ipv4_filter_unicast_nlri="0",
    ipv4_filter_multicast_nlri="1",
    ipv4_capability_mpls_nlri="1",
    ipv4_filter_mpls_nlri="1",
    ipv4_capability_mpls_vpn_nlri="1",
    ipv6_capability_unicast_nlri="1",
    ipv6_filter_unicast_nlri="1",
    ipv6_filter_multicast_nlri="1",
    ipv6_capability_mpls_nlri="1",
    ipv6_filter_mpls_nlri="1",
    ipv6_capability_mpls_vpn_nlri="1",
    ipv4_mpls_add_path_mode="sendonly",
    ipv6_mpls_add_path_mode="sendonly",
    ipv4_unicast_add_path_mode="sendonly",
    ipv6_unicast_add_path_mode="sendonly",
    ipv4_mpls_capability="1",
    capability_ipv4_mpls_add_path="1",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_bgp_config', _result_)