local_router_id = "2.2.2.2", ethernet_segments_count = "1", filter_evpn = "1", evpn = "1", operational_model = "symmetric", ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_bgp_config', _result_) bgpIpv4Peer_1_handle = _result_['bgp_handle'] # Add EVI(PBB) stack on top of BGP print "Add EVI(PBB) stack on top of BGP\n" _result_ = ixiangpf.emulation_bgp_route_config( handle = bgpIpv4Peer_1_handle, mode = "create", pbb_evpn = "1", ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_bgp_route_config', _result_) bgpIPv4EvpnPbb_1_handle = _result_['evpn_evi'] # Configure BGP Ethernet Segment stack print "Configure BGP Ethernet Segment stack\n" _result_ = ixiangpf.emulation_bgp_config( mode = "modify", handle = bgpIpv4Peer_1_handle, active_ethernet_segment = "1", esi_type = "type0", esi_value = "1",
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( handle = bgpIpv4Peer_1_handle, mode = "create", evpn_vxlan = "1", ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_bgp_route_config', _result_) bgpIPv4EvpnVXLAN_1_handle = _result_['evpn_evi'] # Configure BGP Ethernet Segment stack in Port1 print "Configure BGP Ethernet Segment stack in Port1\n" _result_ = ixiangpf.emulation_bgp_config( mode = "modify", handle = bgpIpv4Peer_1_handle, active_ethernet_segment = "1", esi_type = "type0", esi_value = "1",
ErrorHandler('multivalue_config', _result_) multivalue_15_handle = _result_['multivalue_handle'] # Creating BGP Network Group print "Creating BGP Network Group on Port 1\n" _result_ = ixiangpf.emulation_bgp_route_config( handle=networkGroup_1_handle, mode="create", protocol_route_name="""BGP IP Route Range 1""", active="1", ipv4_unicast_nlri="1", max_route_ranges="5", ip_version="4", prefix=multivalue_8_handle, label_step="1", label_start=multivalue_9_handle, enable_add_path="1", add_path_id=multivalue_10_handle, advertise_as_bgp_3107="1", label_end=multivalue_11_handle, enable_aigp="1", no_of_tlvs="2", aigp_type=["aigptlv", "aigptlv"], aigp_value=[multivalue_14_handle, multivalue_15_handle], ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_bgp_route_config', _result_) # Creating a topology on second port print "Adding topology 2 on port 2"