From c5fd0cb1587c1a0202affa820c2f2505998965af Mon Sep 17 00:00:00 2001 From: Quan Xiong Date: Wed, 2 Aug 2017 18:13:36 +0800 Subject: [PATCH] Update Bier CSIT with template Change-Id: I4e6914216482100a875b5676ef433d0c49774eb0 Signed-off-by: Quan Xiong --- csit/libraries/BierResource.robot | 214 ------ csit/libraries/BierTeResource.robot | 48 ++ .../basic/010_BierTeIntergrationTest.robot | 223 ++++++ .../bier/basic/010_Bier_Configuration.robot | 417 ----------- csit/suites/bier/basic/__init__.robot | 11 +- .../bier/bier_bgp_configuration/data.json | 137 ++++ .../bier/bier_bgp_configuration/location.uri | 1 + .../add_channel/location.uri | 1 + .../add_channel/post_data.json | 12 + .../deploy_channel/location.uri | 1 + .../deploy_channel/post_data.json | 27 + .../get_channel/location.uri | 1 + .../get_channel/post_data.json | 5 + .../get_channel/response.json | 15 + .../modify_channel/location.uri | 1 + .../modify_channel/post_data.json | 12 + .../query_channel/location.uri | 1 + .../query_channel/post_data.json | 8 + .../query_channel/response.json | 24 + .../query_channel_with_port/location.uri | 1 + .../query_channel_with_port/post_data.json | 8 + .../query_channel_with_port/response.json | 16 + .../remove_channel/location.uri | 1 + .../remove_channel/post_data.json | 6 + .../success_response.json | 10 + .../configure_domain/location.uri | 1 + .../configure_domain/post_data.json | 7 + .../configure_subdomain/location.uri | 1 + .../configure_subdomain/post_data.json | 8 + .../delete_domain/location.uri | 1 + .../delete_domain/post_data.json | 7 + .../delete_subdomain/location.uri | 1 + .../delete_subdomain/post_data.json | 8 + .../query_domain/location.uri | 1 + .../query_domain/post_data.json | 6 + .../query_domain/response.json | 9 + .../query_subdomain/location.uri | 1 + .../query_subdomain/post_data.json | 7 + .../query_subdomain/response.json | 9 + .../bier_init_biertopology/data.json | 688 +++++++++++++++++ .../bier_init_biertopology/location.uri | 1 + .../bier_init_all/bier_init_channel/data.json | 9 + .../bier_init_channel/location.uri | 1 + .../config_node0/data.json | 12 + .../config_node0/location.uri | 1 + .../config_node1/data.json | 12 + .../config_node1/location.uri | 1 + .../config_node2/data.json | 12 + .../config_node2/location.uri | 1 + .../config_node3/data.json | 12 + .../config_node3/location.uri | 1 + .../config_node4/data.json | 12 + .../config_node4/location.uri | 1 + .../configure_node/config_node_response.json | 701 ++++++++++++++++++ .../configure_node/location.uri | 1 + .../configure_node/post_data.json | 36 + .../configure_te_label/location.uri | 1 + .../configure_te_label/post_data.json | 8 + .../configure_te_node/location.uri | 1 + .../configure_te_node/post_data.json | 32 + .../delete_ipv4/location.uri | 1 + .../delete_ipv4/post_data.json | 13 + .../delete_node/location.uri | 1 + .../delete_node/post_data.json | 8 + .../delete_te_bp/location.uri | 1 + .../delete_te_bp/post_data.json | 11 + .../delete_te_bsl/location.uri | 1 + .../delete_te_bsl/post_data.json | 9 + .../delete_te_label/location.uri | 1 + .../delete_te_label/post_data.json | 6 + .../delete_te_si/location.uri | 1 + .../delete_te_si/post_data.json | 10 + .../load_topology/location.uri | 1 + .../load_topology/post_data.json | 4 + .../load_topology/response.json | 9 + .../query_link/location.uri | 1 + .../query_link/post_data.json | 6 + .../query_link/response.json | 71 ++ .../query_node/location.uri | 1 + .../query_node/post_data.json | 6 + .../query_node/response.json | 551 ++++++++++++++ .../query_subdomain_link/location.uri | 1 + .../query_subdomain_link/post_data.json | 7 + .../query_subdomain_link/response.json | 84 +++ .../query_subdomain_node/location.uri | 1 + .../query_subdomain_node/post_data.json | 7 + .../query_subdomain_node/response.json | 3 + .../query_te_subdomain_link/location.uri | 1 + .../query_te_subdomain_link/post_data.json | 7 + .../query_te_subdomain_link/response.json | 110 +++ .../query_te_subdomain_node/location.uri | 1 + .../query_te_subdomain_node/post_data.json | 7 + .../query_te_subdomain_node/response.json | 3 + .../query_topology/location.uri | 1 + .../query_topology/post_data.json | 5 + .../query_topology/response.json | 37 + .../create_bier_path/location.uri | 1 + .../create_bier_path/post_data.json | 15 + .../create_bier_path/response.json | 52 ++ .../query_bier_instance_path/location.uri | 1 + .../query_bier_instance_path/post_data.json | 5 + .../query_bier_instance_path/response.json | 12 + .../query_bier_path/location.uri | 1 + .../query_bier_path/post_data.json | 7 + .../query_bier_path/response.json | 23 + .../query_channel_through_port/location.uri | 1 + .../query_channel_through_port/post_data.json | 6 + .../query_channel_through_port/response.json | 14 + .../remove_bier_path/location.uri | 1 + .../remove_bier_path/post_data.json | 11 + .../remove_bier_path/response.json | 30 + .../bier_bitstring/data.json | 57 ++ .../bier_bitstring/location.uri | 1 + .../bier_bitstring/response.json | 57 ++ .../bier/common/success_response.json | 7 + 115 files changed, 3464 insertions(+), 638 deletions(-) delete mode 100644 csit/libraries/BierResource.robot create mode 100644 csit/libraries/BierTeResource.robot create mode 100644 csit/suites/bier/basic/010_BierTeIntergrationTest.robot delete mode 100644 csit/suites/bier/basic/010_Bier_Configuration.robot create mode 100644 csit/variables/bier/bier_bgp_configuration/data.json create mode 100644 csit/variables/bier/bier_bgp_configuration/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/add_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/add_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/deploy_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/deploy_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/get_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/get_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/get_channel/response.json create mode 100644 csit/variables/bier/bier_channel_configuration/modify_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/modify_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel/response.json create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel_with_port/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel_with_port/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/query_channel_with_port/response.json create mode 100644 csit/variables/bier/bier_channel_configuration/remove_channel/location.uri create mode 100644 csit/variables/bier/bier_channel_configuration/remove_channel/post_data.json create mode 100644 csit/variables/bier/bier_channel_configuration/success_response.json create mode 100644 csit/variables/bier/bier_domain_configuration/configure_domain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/configure_domain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/configure_subdomain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/configure_subdomain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/delete_domain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/delete_domain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/delete_subdomain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/delete_subdomain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/query_domain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/query_domain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/query_domain/response.json create mode 100644 csit/variables/bier/bier_domain_configuration/query_subdomain/location.uri create mode 100644 csit/variables/bier/bier_domain_configuration/query_subdomain/post_data.json create mode 100644 csit/variables/bier/bier_domain_configuration/query_subdomain/response.json create mode 100644 csit/variables/bier/bier_init_all/bier_init_biertopology/data.json create mode 100644 csit/variables/bier/bier_init_all/bier_init_biertopology/location.uri create mode 100644 csit/variables/bier/bier_init_all/bier_init_channel/data.json create mode 100644 csit/variables/bier/bier_init_all/bier_init_channel/location.uri create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node0/data.json create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node0/location.uri create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node1/data.json create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node1/location.uri create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node2/data.json create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node2/location.uri create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node3/data.json create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node3/location.uri create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node4/data.json create mode 100644 csit/variables/bier/bier_netconf_configuration/config_node4/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/configure_node/config_node_response.json create mode 100644 csit/variables/bier/bier_node_configuration/configure_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/configure_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/configure_te_label/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/configure_te_label/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/configure_te_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/configure_te_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_ipv4/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_ipv4/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_bp/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_bp/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_bsl/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_bsl/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_label/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_label/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_si/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/delete_te_si/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/load_topology/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/load_topology/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/load_topology/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_link/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_link/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_link/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_node/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_link/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_link/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_link/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_subdomain_node/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_link/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_link/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_link/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_node/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_node/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_te_subdomain_node/response.json create mode 100644 csit/variables/bier/bier_node_configuration/query_topology/location.uri create mode 100644 csit/variables/bier/bier_node_configuration/query_topology/post_data.json create mode 100644 csit/variables/bier/bier_node_configuration/query_topology/response.json create mode 100644 csit/variables/bier/bier_pce_configuration/create_bier_path/location.uri create mode 100644 csit/variables/bier/bier_pce_configuration/create_bier_path/post_data.json create mode 100644 csit/variables/bier/bier_pce_configuration/create_bier_path/response.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_instance_path/location.uri create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_instance_path/post_data.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_instance_path/response.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_path/location.uri create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_path/post_data.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_bier_path/response.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_channel_through_port/location.uri create mode 100644 csit/variables/bier/bier_pce_configuration/query_channel_through_port/post_data.json create mode 100644 csit/variables/bier/bier_pce_configuration/query_channel_through_port/response.json create mode 100644 csit/variables/bier/bier_pce_configuration/remove_bier_path/location.uri create mode 100644 csit/variables/bier/bier_pce_configuration/remove_bier_path/post_data.json create mode 100644 csit/variables/bier/bier_pce_configuration/remove_bier_path/response.json create mode 100644 csit/variables/bier/bier_service_configuration/bier_bitstring/data.json create mode 100644 csit/variables/bier/bier_service_configuration/bier_bitstring/location.uri create mode 100644 csit/variables/bier/bier_service_configuration/bier_bitstring/response.json create mode 100644 csit/variables/bier/common/success_response.json diff --git a/csit/libraries/BierResource.robot b/csit/libraries/BierResource.robot deleted file mode 100644 index c4dd43890f..0000000000 --- a/csit/libraries/BierResource.robot +++ /dev/null @@ -1,214 +0,0 @@ -*** Settings *** -Documentation Robot keyword library (Resource) for BIER information configuration and verification Python utilities. -... -... Copyright (c) 2016-2017 Zte, Inc. and others. All rights reserved. -... -... This resource contains some keywords which complete four main functions: -... Send corresponding request to datastore, -... Construct BIER information, -... Verity Configuration success or not and its result, -... Delete BIER configuration and close all session. -Library Collections -Library RequestsLibrary -Library json - -*** Keywords *** -Send_Request_To_Query_Topology_Id - [Arguments] ${module} ${oper} - [Documentation] Send request to controller to query topologyid through REST-API using POST method, ${module} represents yang module and ${oper} represents rpc operation - ${resp} Post Request session /restconf/operations/${module}:${oper} - BuiltIn.Log ${resp.content} - [Return] ${resp} - -Send_Request_Operation_Besides_QueryTopology_Id - [Arguments] ${module} ${oper} ${input} - [Documentation] Send other request to controller besides query topologyid, for example configures domain, subdomain, node and so on. ${input} represents the request body - ${pkg} Create Dictionary input=${input} - ${data} Dumps ${pkg} - ${resp} Post Request session /restconf/operations/${module}:${oper} data=${data} - BuiltIn.Log ${resp.content} - [Return] ${resp} - -Node_Online - [Documentation] Send request to query node and verify their existence - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${NODE_ID_LIST} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${node_list} Get From Dictionary ${out_put} node - ${node_num} Get Length ${node_list} - BuiltIn.Should_Be_Equal ${node_num} ${NODE_NUM} - @{node_id_list} Create List 1 2 3 4 5 - ... 6 7 - : FOR ${i} IN RANGE 7 - \ ${node} Get From List ${node_list} ${i} - \ ${node_id} Get From Dictionary ${node} node-id - \ List Should Contain Value ${node_id_list} ${node_id} - -Construct_Af - [Arguments] ${ipv4_bsl} ${ipv6_bsl} ${bier_ipv4_mlslab_base} ${bier_ipv6_mlslab_base} ${bier_mlslab_range_size} - [Documentation] Construct container af inside single subdomain by given details ${ipv4_bsl}, ${ipv6_bsl}, ${bier_mlslab_base} and ${bier_mlslab_range_size} - ${ipv4} Create Dictionary bitstringlength=${ipv4_bsl} bier-mpls-label-base=${bier_ipv4_mlslab_base} bier-mpls-label-range-size=${bier_mlslab_range_size} - ${ipv6} Create Dictionary bitstringlength=${ipv6_bsl} bier-mpls-label-base=${bier_ipv6_mlslab_base} bier-mpls-label-range-size=${bier_mlslab_range_size} - ${ipv4_list} Create List ${ipv4} - ${ipv6_list} Create List ${ipv6} - ${af} Create Dictionary ipv4=${ipv4_list} ipv6=${ipv6_list} - [Return] ${af} - -Construct_Subdomain - [Arguments] ${subdomain_id} ${igp_type} ${mt_id} ${bfr_id} ${bit_string_length} ${af} - [Documentation] Construct subdomain list in a domain by given details ${subdomain_id}, ${igp_type}, ${mt_id}, ${bfr_id}, ${bit_string_length}, ${af} - ${subdomain} Create Dictionary sub-domain-id=${subdomain_id} igp-type=${igp_type} mt-id=${mt_id} bfr-id=${bfr_id} bitstringlength=${bit_string_length} - ... af=${af} - [Return] ${subdomain} - -Construct_Bier_Global - [Arguments] ${encapsulation_type} ${bit_string_length} ${bfr_id} ${ipv4_bfr_prefix} ${ipv6_bfr_prefix} ${subdomain_list} - [Documentation] Construct bier global in a domain by given details ${encapsulation_type}, ${bit_string_length}, ${bfr_id}, ${ipv4_bfr_prefix}, ${ipv6_bfr_prefix}, ${subdomain_list} - ${bier_global} Create Dictionary encapsulation-type=${encapsulation_type} bitstringlength=${bit_string_length} bfr-id=${bfr_id} ipv4-bfr-prefix=${ipv4_bfr_prefix} ipv6-bfr-prefix=${ipv6_bfr_prefix} - ... sub-domain=${subdomain_list} - [Return] ${bier_global} - -Construct_Domain - [Arguments] ${domain_id} ${bier_global} - [Documentation] Construct domain by given details ${domain_id}, ${bier_global} - ${domain} Create Dictionary domain-id=${domain_id} bier-global=${bier_global} - [Return] ${domain} - -Add_Subdomain - [Arguments] ${subdomain_bfr_id_value} ${subdomain_list} - [Documentation] Construct ${af} to contruct new subdomain and add it to the ${subdomain_list} - ${af} Construct_Af ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 9 13 4 - ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[1]} ${IGP_TYPE_LIST[1]} ${MT_ID_LIST[0]} ${subdomain_bfr_id_value} ${BITSTRINGLENGTH_LIST[0]} - ... ${af} - Append To List ${subdomain_list} ${subdomain} - BuiltIn.Log ${subdomain_list} - [Return] ${subdomain_list} - -Add_Or_Modify_Ipv4 - [Arguments] ${ipv4_bsl} ${ipv6_bsl} ${bier_ipv4_mlslab_base} ${bier_new_ipv4_mlslab_base} ${bier_ipv6_mlslab_base} ${bier_mlslab_range_size} - [Documentation] Add or modify ipv4 inside af by given details ${ipv4_bsl}, ${ipv6_bsl}, ${bier_mlslab_base}, ${bier_mlslab_range_size} - ${ipv4_one} Create Dictionary bitstringlength=${ipv4_bsl} bier-mpls-label-base=${bier_ipv4_mlslab_base} bier-mpls-label-range-size=${bier_mlslab_range_size} - ${ipv4_two} Create Dictionary bitstringlength=${ipv6_bsl} bier-mpls-label-base=${bier_new_ipv4_mlslab_base} bier-mpls-label-range-size=${bier_mlslab_range_size} - ${ipv6} Create Dictionary bitstringlength=${ipv6_bsl} bier-mpls-label-base=${bier_ipv6_mlslab_base} bier-mpls-label-range-size=${bier_mlslab_range_size} - ${ipv4_list} Create List ${ipv4_one} ${ipv4_two} - ${ipv6_list} Create List ${ipv6} - ${af} Create Dictionary ipv4=${ipv4_list} ipv6=${ipv6_list} - [Return] ${af} - -Verify_Configuration_Success_Or_Not - [Arguments] ${resp} - [Documentation] Verify the return value ${resp} of request to controller success or not - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${output} Get From Dictionary ${root} output - ${configure_result} Get From Dictionary ${output} configure-result - ${result} Get From Dictionary ${configure_result} result - BuiltIn.Should_Be_Equal ${result} SUCCESS - -Extract_NodeConfig_Output_And_Verify_Value - [Arguments] ${resp} ${subdomain_index} ${ipv4_list_index} ${node_id_value} ${domain_id_value} ${ipv4_value} - ... ${ipv6_value} ${bit_string_length_value} ${bfr_id_value} ${subdomain_id_value} ${igp_type_value} ${subdomain_bit_string_length_value} - ... ${subdomain_bfr_id_value} ${mt_id_value} ${ipv4_bit_string_length_value} ${ipv4_bier_mpls_label_base_value} ${ipv4_bier_mpls_label_range_size_value} ${ipv6_bit_string_length_value} - ... ${ipv6_bier_mpls_label_base_value} ${ipv6_bier_mpls_label_range_size_value} - [Documentation] Extract the output of node configuration request and verify its value - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${node_list} Get From Dictionary ${out_put} node - ${node} Get From List ${node_list} 0 - ${node_id} Get From Dictionary ${node} node-id - ${bier_node_params} Get From Dictionary ${node} bier-node-params - ${domain_list} Get From Dictionary ${bier_node_params} domain - ${domain} Get From List ${domain_list} 0 - ${domain_id} Get From Dictionary ${domain} domain-id - ${bier_global} Get From Dictionary ${domain} bier-global - ${ipv4_bfr_prefix} Get From Dictionary ${bier_global} ipv4-bfr-prefix - ${ipv6_bfr_prefix} Get From Dictionary ${bier_global} ipv6-bfr-prefix - ${encapsulation_type} Get From Dictionary ${bier_global} encapsulation-type - ${bit_string_length} Get From Dictionary ${bier_global} bitstringlength - ${bfr_id} Get From Dictionary ${bier_global} bfr-id - ${subdomain_list} Get From Dictionary ${bier_global} sub-domain - ${subdomain} Get From List ${subdomain_list} ${subdomain_index} - ${subdomain_id} Get From Dictionary ${subdomain} sub-domain-id - ${igp_type} Get From Dictionary ${subdomain} igp-type - ${subdomain_bit_string_length} Get From Dictionary ${subdomain} bitstringlength - ${subdomain_bfr_id} Get From Dictionary ${subdomain} bfr-id - ${mt_id} Get From Dictionary ${subdomain} mt-id - ${af} Get From Dictionary ${subdomain} af - ${ipv4_list} Get From Dictionary ${af} ipv4 - ${ipv6_list} Get From Dictionary ${af} ipv6 - ${ipv4} Get From List ${ipv4_list} ${ipv4_list_index} - ${ipv6} Get From List ${ipv6_list} 0 - ${ipv4_bit_string_length} Get From Dictionary ${ipv4} bitstringlength - ${ipv4_bier_mpls_label_base} Get From Dictionary ${ipv4} bier-mpls-label-base - ${ipv4_bier_mpls_label_range_size} Get From Dictionary ${ipv4} bier-mpls-label-range-size - ${ipv6_bit_string_length} Get From Dictionary ${ipv6} bitstringlength - ${ipv6_bier_mpls_label_base} Get From Dictionary ${ipv6} bier-mpls-label-base - ${ipv6_bier_mpls_label_range_size} Get From Dictionary ${ipv6} bier-mpls-label-range-size - BuiltIn.Should_Be_Equal_As_strings ${node_id} ${node_id_value} - BuiltIn.Should_Be_Equal ${domain_id} ${domain_id_value} - BuiltIn.Should_Be_Equal ${ipv4_bfr_prefix} ${ipv4_value} - BuiltIn.Should_Be_Equal ${ipv6_bfr_prefix} ${ipv6_value} - BuiltIn.Should_Be_Equal ${bit_string_length} ${bit_string_length_value} - BuiltIn.Should_Be_Equal ${bfr_id} ${bfr_id_value} - BuiltIn.Should_Be_Equal ${subdomain_id} ${subdomain_id_value} - BuiltIn.Should_Be_Equal ${igp_type} ${igp_type_value} - BuiltIn.Should_Be_Equal ${subdomain_bit_string_length} ${subdomain_bit_string_length_value} - BuiltIn.Should_Be_Equal ${subdomain_bfr_id} ${subdomain_bfr_id_value} - BuiltIn.Should_Be_Equal ${mt_id} ${mt_id_value} - BuiltIn.Should_Be_Equal ${ipv4_bit_string_length} ${ipv4_bit_string_length_value} - BuiltIn.Should_Be_Equal ${ipv4_bier_mpls_label_base} ${ipv4_bier_mpls_label_base_value} - BuiltIn.Should_Be_Equal ${ipv4_bier_mpls_label_range_size} ${ipv4_bier_mpls_label_range_size_value} - BuiltIn.Should_Be_Equal ${ipv6_bit_string_length} ${ipv6_bit_string_length_value} - BuiltIn.Should_Be_Equal ${ipv6_bier_mpls_label_base} ${ipv6_bier_mpls_label_base_value} - BuiltIn.Should_Be_Equal ${ipv6_bier_mpls_label_range_size} ${ipv6_bier_mpls_label_range_size_value} - -Extract_Channel_Output_And_Verify_Value - [Arguments] ${resp} ${name} ${src_ip_value} ${dst_group_value} ${domain_id_value} ${subdomain_id_value} - ... ${source_wildcard_value} ${group_wildcard_value} - [Documentation] Extract the output of channel configuration request and verify its value - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${channel_list} Get From Dictionary ${out_put} channel - ${channel} Get From List ${channel_list} 0 - ${channel_name} Get From Dictionary ${channel} name - ${src_ip} Get From Dictionary ${channel} src-ip - ${subdomain_id} Get From Dictionary ${channel} sub-domain-id - ${source_wildcard} Get From Dictionary ${channel} source-wildcard - ${dst_group} Get From Dictionary ${channel} dst-group - ${domain_id} Get From Dictionary ${channel} domain-id - ${group_wildcard} Get From Dictionary ${channel} group-wildcard - BuiltIn.Should_Be_Equal ${channel_name} ${name} - BuiltIn.Should_Be_Equal ${src_ip} ${src_ip_value} - BuiltIn.Should_Be_Equal ${dst_group} ${dst_group_value} - BuiltIn.Should_Be_Equal ${domain_id} ${domain_id_value} - BuiltIn.Should_Be_Equal ${subdomain_id} ${subdomain_id_value} - BuiltIn.Should_Be_Equal ${source_wildcard} ${source_wildcard_value} - BuiltIn.Should_Be_Equal ${group_wildcard} ${group_wildcard_value} - [Return] ${channel} - -Extract_Channel_Ingress_And_Egress_Node_Output_And_Verify_Value - [Arguments] ${channel} ${ingress_node_value} ${egress_node1_value} ${egress_node2_value} - [Documentation] Extract the ingress and egress node of deployed channel and verify its value - ${ingress_node} Get From Dictionary ${channel} ingress-node - ${egress_node_list} Get From Dictionary ${channel} egress-node - ${egress_node1} Get From List ${egress_node_list} 0 - ${egress_node2} Get From List ${egress_node_list} 1 - ${node_id1} Get From Dictionary ${egress_node1} node-id - ${node_id2} Get From Dictionary ${egress_node2} node-id - BuiltIn.Should_Be_Equal ${ingress_node} ${ingress_node_value} - BuiltIn.Should_Be_Equal ${node_id1} ${egress_node1_value} - BuiltIn.Should_Be_Equal ${node_id2} ${egress_node2_value} - -Delete_All - [Documentation] Delete domain and subdomain which were configured previous and close restconf session - : FOR ${i} IN RANGE 3 - \ ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} - \ ... sub-domain-id ${i+1} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-subdomain ${input1} - \ Verify_Configuration_Success_Or_Not ${resp1} - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-domain ${input2} - Verify_Configuration_Success_Or_Not ${resp2} - RequestsLibrary.Delete_All_Sessions diff --git a/csit/libraries/BierTeResource.robot b/csit/libraries/BierTeResource.robot new file mode 100644 index 0000000000..5d0802ef54 --- /dev/null +++ b/csit/libraries/BierTeResource.robot @@ -0,0 +1,48 @@ +*** Settings *** +Documentation Robot keyword library (Resource) for BIER information configuration and verification Python utilities. +... +... Copyright (c) 2016-2017 Zte, Inc. and others. All rights reserved. +... +... This resource contains some keywords which complete four main functions: +... Send corresponding request to datastore, +... Construct BIER information, +... Verity Configuration success or not and its result, +... Delete BIER configuration and close all session. +Resource TemplatedRequests.robot +Library SSHLibrary + +*** Variables *** +${BIER_TE_VAR_FOLDER} ${CURDIR}/../variables/bier +@{NETCONF_PORT_LIST} 17830 17831 17832 17833 17834 +${TESTTOOL_PATH} /root +${TESTTOOL_VERSION} netconf-testtool-1.3.0-SNAPSHOT-executable.jar +${TESTTOOL_SCHEME} ./yang_ietf_bier + +*** Keywords *** +Init All + [Documentation] Init the configuration datastore defined by YANG modules bier-network-topology and bier-network-channel, the Testtool for to simulate the netconf devices, and the netconf connecting IP address and port for the ODL controller. + Init Bier Topology + Init Channel + +Init Bier Topology + [Documentation] Init the configuration datastore defined by the YANG module bier-network-topology. + ${resp} TemplatedRequests.Put_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_init_all/bier_init_biertopology {} session + +Init Channel + [Documentation] Init the configuration datastore defined by the YANG module bier-network-channel. + ${resp} TemplatedRequests.Put_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_init_all/bier_init_channel {} session + +Node Online + [Documentation] Verify the Keyword Init Bier Topology has been successfully executed by query and verify the nodes in the datastore. + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/query_node {} session True + +Second Layer Loop + [Arguments] ${node-id} ${tp-id-list} ${bp-list} ${length} + [Documentation] The keyword is used for the second layer of loop TC5_Configure Te Node. + : FOR ${j} IN RANGE ${length} + \ ${tp-id} Get From List ${tp-id-list} ${j} + \ ${bp} Get From List ${bp-list} ${j} + \ ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${node-id} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + \ ... TPID=${tp-id} BP=${bp} + \ ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_te_node ${mapping} session + \ Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response diff --git a/csit/suites/bier/basic/010_BierTeIntergrationTest.robot b/csit/suites/bier/basic/010_BierTeIntergrationTest.robot new file mode 100644 index 0000000000..d9eaa9f16b --- /dev/null +++ b/csit/suites/bier/basic/010_BierTeIntergrationTest.robot @@ -0,0 +1,223 @@ +*** Settings *** +Documentation Basic tests for BIER information configuration and verification. +... Copyright (c) 2016-2017 Zte, Inc. and others. All rights reserved. +... Test suite performs basic BIER information configuration and verification test cases for topology domain, subdomain, node and channel as follows: +... Test Case 1: Query the topology, node and check their existence +... Expected result: Exist a topology which topologyId is example-linkstate-topology and five nodes inside it +... Test Case 2: Configure domain with add and delete operation +... Expected result: The Configure result with corresponding operation verified as expected +... Test Case 3: Configure subdomain with add and delete operation +... Expected result: The Configure result with corresponding operation verified as expected +... Test Case 4: Configure bier node params with add, modify and delete operation +... Expected result: The Configure result with corresponding operation verified as expected +... Test Case 5: Configure bier-te node params with add, modify and delete operation +... Expected result: The Configure result with corresponding operation verified as expected +... Test Case 6: Configure channel with add, modify, deploy and delete operation +... Expected result: The Configure result with corresponding operation verified as expected +Suite Setup Init All +Suite Teardown Delete All Sessions +Resource ../../../libraries/BierTeResource.robot +Resource ../../../libraries/TemplatedRequests.robot +Variables ../../../variables/Variables.robot +Library RequestsLibrary + +*** Variables *** +@{NODE_ID_LIST} 1111.1111.1111 1111.1111.1122 1111.1111.1133 1111.1111.1144 1111.1111.1155 +${TOPOLOGY_ID} example-linkstate-topology +@{DOMAIN_ID_LIST} ${1} ${2} +@{SUBDOMAIN_ID_LIST} ${1} ${2} +@{BFR_ID_LIST} ${1} ${2} ${3} ${4} ${5} +@{TE_LABEL_BASE_LIST} ${1100} ${2200} ${3300} ${4400} ${5500} +${TE_LABEL_RANGE_SIZE} ${100} +@{TP_ID_LIST_OF_NODE1} fei-0/1/0/4 fei-0/1/0/1 fei-0/1/0/7 atm135-0/1/2/2 +@{BP_LIST_OF_NODE1} 1 2 3 4 +@{TP_ID_LIST_OF_NODE2} fei-0/1/0/1 atm155-0/1/2/1 fei-0/1/0/6 +@{BP_LIST_OF_NODE2} 5 6 15 +@{TP_ID_LIST_OF_NODE3} fei-0/1/0/4 fei-0/1/0/5 pos192-0/1/0/3 +@{BP_LIST_OF_NODE3} 7 8 9 +@{TP_ID_LIST_OF_NODE4} fei-0/1/0/5 spi-0/1/0/4 fei-0/1/0/6 +@{BP_LIST_OF_NODE4} 10 11 14 +&{NODE_TO_TP_ID_LIST} 1111.1111.1111=${TP_ID_LIST_OF_NODE1} 1111.1111.1122=${TP_ID_LIST_OF_NODE2} 1111.1111.1133=${TP_ID_LIST_OF_NODE3} 1111.1111.1144=${TP_ID_LIST_OF_NODE4} +&{NODE_TO_BP_LIST} 1111.1111.1111=${BP_LIST_OF_NODE1} 1111.1111.1122=${BP_LIST_OF_NODE2} 1111.1111.1133=${BP_LIST_OF_NODE3} 1111.1111.1144=${BP_LIST_OF_NODE4} +@{CHANNEL_NAME_LIST} channel1 channel2 channel3 +@{SRC_IP_LIST} 1.1.1.1 2.2.2.2 3.3.3.3 +@{DST_GROUP_LIST} 239.1.1.1 239.2.2.2 239.3.3.3 + +*** Test Cases *** +TC1_Load Topology + [Documentation] Verify the topology has been succesfully put into the datastore by querying nodes and topology names. + Wait Until Keyword Succeeds 30s 2s Node Online + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/load_topology {} session True + +TC1_Query Link + [Documentation] Query the all links in the bier topology. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/query_link ${mapping1} session True + +TC2_Configure Domain + [Documentation] Configure two BIER domains with domain id list ${DOMAIN_ID_LIST}. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID1=${DOMAIN_ID_LIST[0]} DOMAINID2=${DOMAIN_ID_LIST[1]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/configure_domain ${mapping1} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC2_Delete Domain + [Documentation] Delete the second domain created in the testcase TC2_Configure Domain. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[1]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/delete_domain ${mapping1} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC2_Query Domain + [Documentation] Query the domains created in the datastore. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/query_domain ${mapping1} session True + +TC3_Configure Subdomain + [Documentation] Configure two subdomains with subdomain list ${SUBDOMAIN_ID_LIST}. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAIN1=${SUBDOMAIN_ID_LIST[0]} SUBDOMAIN2=${SUBDOMAIN_ID_LIST[1]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/configure_subdomain ${mapping1} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC3_Delete Subdomain + [Documentation] Delete the second subdomain created in TC3_Configure Subdomain. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[1]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/delete_subdomain ${mapping1} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC3_Query Subdomain + [Documentation] Query the subdomains in the datastore. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_domain_configuration/query_subdomain ${mapping1} session True + +TC4_Configure Node + [Documentation] Configure the bier params of nodes in the bier network topology. + : FOR ${i} IN RANGE len(${NODE_ID_LIST}) + \ ${domain-bfr-id} Get From List ${BFR_ID_LIST} ${i} + \ ${node-id} Get From List ${NODE_ID_LIST} ${i} + \ ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${node-id} DOMAINID=${DOMAIN_ID_LIST[0]} DOMAINBFRID=${domain-bfr-id} + \ ... SUBDOMAINBFRID=${domain-bfr-id} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + \ ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_node ${mapping1} session + \ Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/query_node {} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_node config_node_response + +TC4_Delete Node + [Documentation] Configure the bier params of one node in the bier network topology and then delete it. + ${node-id} Get From List ${NODE_ID_LIST} ${3} + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} NODEID=${node-id} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_node ${mapping} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC4_Delete IPV4 + [Documentation] Configure the bier params of one node in the bier network topology and delete the ipv4 parameter of it. + ${node-id} Get From List ${NODE_ID_LIST} ${4} + ${mapping} Create Dictionary DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} NODEID=${node-id} TOPOLOGYID=${TOPOLOGY_ID} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_ipv4 ${mapping} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC4_Query Subdomain Link + [Documentation] Query the bier links in the domain 1 and subdomain 1. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/query_subdomain_link ${mapping} session True + +TC5_Configure Te Label + [Documentation] Configure the BIER-TE label base and label range size for all nodes in the bier topology. + : FOR ${i} IN RANGE len(${NODE_ID_LIST}) + \ ${node-id} Get From List ${NODE_ID_LIST} ${i} + \ ${label-base} Get From List ${TE_LABEL_BASE_LIST} ${i} + \ ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${node-id} LABELBASE=${label-base} LABELRANGESIZE=${TE_LABEL_RANGE_SIZE} + \ ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_te_label ${mapping} session + \ Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC5_Configure Te Node + [Documentation] Configure the BIER-TE params of nodes in the bier network topology. + : FOR ${i} IN RANGE 4 + \ ${node-id} Get From List ${NODE_ID_LIST} ${i} + \ ${tp-id-list} Get From Dictionary ${NODE_TO_TP_ID_LIST} ${node-id} + \ ${bp-list} Get From Dictionary ${NODE_TO_BP_LIST} ${node-id} + \ Second Layer Loop ${node-id} ${tp-id-list} ${bp-list} len(${bp-list}) + +TC5_Query Te Subdomain Link + [Documentation] Query the bier links in the te-domain 1 and te-subdomain 1. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/query_te_subdomain_link ${mapping} session True + +TC5_Delete Te BP + [Documentation] Configure the bier te params of one node and delete the BP parameter. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} TPID=spi-0/1/0/3 + ... BP=13 + ${resp1} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_te_node ${mapping1} session + Verify_Response_As_Json_Templated ${resp1} ${BIER_TE_VAR_FOLDER}/common success_response + ${mapping2} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} TPID=spi-0/1/0/3 + ${resp2} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_te_bp ${mapping2} session + Verify_Response_As_Json_Templated ${resp2} ${BIER_TE_VAR_FOLDER}/common success_response + +TC5_Delete Te SI + [Documentation] Configure the bier te params of one node and delete the SI parameter. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} TPID=spi-0/1/0/3 + ... BP=13 + ${resp1} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_te_node ${mapping1} session + Verify_Response_As_Json_Templated ${resp1} ${BIER_TE_VAR_FOLDER}/common success_response + ${mapping2} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + ${resp2} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_te_si ${mapping2} session + Verify_Response_As_Json_Templated ${resp2} ${BIER_TE_VAR_FOLDER}/common success_response + +TC5_Delete Te BSL + [Documentation] Configure the bier te params of one node and delete the BSL parameter. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} TPID=spi-0/1/0/3 + ... BP=13 + ${resp1} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/configure_te_node ${mapping1} session + Verify_Response_As_Json_Templated ${resp1} ${BIER_TE_VAR_FOLDER}/common success_response + ${mapping2} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + ${resp2} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_te_bsl ${mapping2} session + Verify_Response_As_Json_Templated ${resp2} ${BIER_TE_VAR_FOLDER}/common success_response + +TC5_Delete Te Label + [Documentation] Delete te label base and label range size of one node. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} NODEID=${NODE_ID_LIST[4]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_node_configuration/delete_te_label ${mapping} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/common success_response + +TC6_Add Channel + [Documentation] Add three channels to the datastore defined by bier-network-channel. + : FOR ${i} IN RANGE len(${CHANNEL_NAME_LIST}) + \ ${channel-name} Get From List ${CHANNEL_NAME_LIST} ${i} + \ ${src-ip} Get From List ${SRC_IP_LIST} ${i} + \ ${dst-group} Get From List ${DST_GROUP_LIST} ${i} + \ ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNELNAME=${channel-name} SRCIP=${src-ip} DSTGROUP=${dst-group} + \ ... DOMAINID=${DOMAIN_ID_LIST[0]} SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + \ ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/add_channel ${mapping} session + \ Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/bier_channel_configuration success_response + +TC6_Get Channel + [Documentation] Query the channels put into the datastore. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/get_channel ${mapping} session True + +TC6_Query Channel + [Documentation] Query the channel put into the datastore by given name . + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNEL1=${CHANNEL_NAME_LIST[0]} CHANNEL2=${CHANNEL_NAME_LIST[1]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/query_channel ${mapping} session True + +TC6_Remove Channel + [Documentation] Remove one channel which was put into the datastore. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNELNAME=channel3 + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/remove_channel ${mapping} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/bier_channel_configuration success_response + +TC6_Modify Channel + [Documentation] Modify one channel which was put into the datastore. + ${mapping} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNELNAME=${CHANNEL_NAME_LIST[0]} SRCIP=10.10.10.10 DSTGROUP=${DST_GROUP_LIST[0]} DOMAINID=${DOMAIN_ID_LIST[0]} + ... SUBDOMAINID=${SUBDOMAIN_ID_LIST[0]} + ${resp} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/modify_channel ${mapping} session + Verify_Response_As_Json_Templated ${resp} ${BIER_TE_VAR_FOLDER}/bier_channel_configuration success_response + +TC6_Deploy Channel + [Documentation] Deploy two channels which was put into the datastore, by giving the ingress node, ingress tp, egress nodes and coressponding tps. + ${mapping1} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNELNAME=${CHANNEL_NAME_LIST[0]} INGRESSNODE=${NODE_ID_LIST[0]} SRCTP=${TP_ID_LIST_OF_NODE1[3]} NODEID1=${NODE_ID_LIST[1]} + ... RCVTP1=${TP_ID_LIST_OF_NODE2[1]} NODEID2=${NODE_ID_LIST[2]} RCVTP2=${TP_ID_LIST_OF_NODE3[2]} + ${resp1} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/deploy_channel ${mapping1} session + Verify_Response_As_Json_Templated ${resp1} ${BIER_TE_VAR_FOLDER}/bier_channel_configuration success_response + ${mapping2} Create Dictionary TOPOLOGYID=${TOPOLOGY_ID} CHANNELNAME=${CHANNEL_NAME_LIST[1]} INGRESSNODE=${NODE_ID_LIST[0]} SRCTP=${TP_ID_LIST_OF_NODE1[3]} NODEID1=${NODE_ID_LIST[1]} + ... RCVTP1=${TP_ID_LIST_OF_NODE2[1]} NODEID2=${NODE_ID_LIST[3]} RCVTP2=${TP_ID_LIST_OF_NODE4[1]} + ${resp2} TemplatedRequests.Post_As_Json_Templated ${BIER_TE_VAR_FOLDER}/bier_channel_configuration/deploy_channel ${mapping2} session + Verify_Response_As_Json_Templated ${resp2} ${BIER_TE_VAR_FOLDER}/bier_channel_configuration success_response diff --git a/csit/suites/bier/basic/010_Bier_Configuration.robot b/csit/suites/bier/basic/010_Bier_Configuration.robot deleted file mode 100644 index 71310da84c..0000000000 --- a/csit/suites/bier/basic/010_Bier_Configuration.robot +++ /dev/null @@ -1,417 +0,0 @@ -*** Settings *** -Documentation Basic tests for BIER information configuration and verification. -... -... Copyright (c) 2016-2017 Zte, Inc. and others. All rights reserved. -... -... Test suite performs basic BIER information configuration and verification test cases for -... topology domain, subdomain, node and channel as follows: -... -... Test Case 1: Query the topology, node and check their existence -... Expected result: Exist a topology which topologyId is flow:1 and seven nodes inside it -... -... Test Case 2: Configure domain with add and delete operation -... Expected result: The Configure result with corresponding operation verified as expected -... -... Test Case 3: Configure subdomain with add and delete operation -... Expected result: The Configure result with corresponding operation verified as expected -... -... Test Case 4: Configure node with add, modify and delete operation -... Expected result: The Configure result with corresponding operation verified as expected -... -... Test Case 5: Configure channel with add, modify, deploy and delete operation -... Expected result: The Configure result with corresponding operation verified as expected -Suite Setup RequestsLibrary.Create_Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_YANG_JSON} -Suite Teardown Delete_All -Library OperatingSystem -Library RequestsLibrary -Library Collections -Library XML -Resource ../../../libraries/BierResource.robot -Resource ../../../variables/Variables.robot - -*** Variables *** -${TOPOLOGY_ID} flow:1 -@{DOMAIN_ID} 1 -@{SUBDOMAIN_ID_LIST} 1 2 3 4 -@{NODE_ID_LIST} 1 2 3 4 5 6 7 -@{BSL_OF_IPV4_AND_IPV6} 64 128 256 -@{IGP_TYPE_LIST} ISIS OSPF -@{MT_ID_LIST} 0 1 2 3 4 5 -@{BITSTRINGLENGTH_LIST} 64-bit 128-bit 256-bit -${ENCAPSULATION_TYPE} ietf-bier:bier-encapsulation-mpls -${IPV4_BFR_PREFIX} 10.41.41.41/22 -${IPV6_BFR_PREFIX} fe80::7009:fe25:8170:36af/64 -${STATUS_CODE} 200 -${CHANNEL_NUM} 2 -${FIXED_VALUE} 4 -${NODE_NUM} 7 -${BIER_IPV4_MLSLAB_BASE} 17 -${BFR_ID} 10 - -*** Test Cases *** -TC1_Query All Topology ID - [Documentation] Query all bier topology ID - Wait Until Keyword Succeeds 30s 2s Node_Online - ${resp} Send_Request_To_Query_Topology_Id bier-topology-api load-topology - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${topology_list} Get From Dictionary ${out_put} topology - ${topology} Get From List ${topology_list} 0 - ${topology_id} Get From Dictionary ${topology} topology-id - BuiltIn.Should_Be_Equal ${topology_id} flow:1 - -TC1_Query Single Topology - [Documentation] Query the topology which assigned by RestAPI - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-topology ${input} - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${topology_id} Get From Dictionary ${out_put} topology-id - BuiltIn.Should_Be_Equal ${topology_id} flow:1 - -TC2_Configure Domain - [Documentation] Configure a bier domain in the topology - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} domain ${DOMAIN_ID} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-domain ${input} - Verify_Configuration_Success_Or_Not ${resp} - -TC2_Query Domain - [Documentation] Query a bier domain in the topology - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-domain ${input} - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${domain_list} Get From Dictionary ${out_put} domain - ${domain_id} Get From List ${domain_list} 0 - ${value} Get From Dictionary ${domain_id} domain-id - BuiltIn.Should_Be_Equal ${value} ${DOMAIN_ID} - -TC2_Delete Domain - [Documentation] Delete a bier domain in the topology - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-domain ${input} - Verify_Configuration_Success_Or_Not ${resp} - -TC3_Configure Subdomain - [Documentation] Configure a bier subdomain in the domain - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} domain ${DOMAIN_ID} - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-domain ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} sub-domain - ... ${SUBDOMAIN_ID_LIST} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-subdomain ${input2} - Verify_Configuration_Success_Or_Not ${resp2} - -TC3_Query Subdomain - [Documentation] Query all bier subdomains in one domain - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-subdomain ${input} - BuiltIn.Should_Be_Equal ${resp.status_code} ${STATUS_CODE} - ${root} To Json ${resp.content} - ${out_put} Get From Dictionary ${root} output - ${subdomain_list} Get From Dictionary ${out_put} subdomain - ${subdomain_num} Get Length ${subdomain_list} - ${fixed_value} Set Variable ${FIXED_VALUE} - : FOR ${i} IN RANGE 4 - \ ${subdomain_id} Get From List ${subdomain_list} ${i} - \ ${value} Get From Dictionary ${subdomain_id} sub-domain-id - \ ${subdomain} Convert To String ${value} - \ Should Contain ${SUBDOMAIN_ID_LIST} ${subdomain} - -TC3_Delete Subdomain - [Documentation] Delete a bier subdomain in one domain - ${input} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} sub-domain-id - ... 4 - ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-subdomain ${input} - Verify_Configuration_Success_Or_Not ${resp} - -TC4_Configure Four Node - [Documentation] Configure the bier information to the four nodes in the subdomain - ${af} Construct_Af ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 5 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[1]} ${MT_ID_LIST[0]} ${i+1} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${bier_global} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[0]} ${i+1} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bier_global} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ Extract_NodeConfig_Output_And_Verify_Value ${resp2} 0 0 ${i+1} ${1} - \ ... 10.41.41.41/22 fe80::7009:fe25:8170:36af/64 64-bit ${i+1} ${1} - \ ... OSPF 64-bit ${i+1} ${0} ${256} - \ ... ${1} ${4} ${64} ${5} ${4} - -TC4_Add Subdomain For Single Node - [Documentation] Configure each node in the subdomain - ${af} Construct_Af ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 5 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[1]} ${MT_ID_LIST[0]} ${i+1} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${new_subdomain_list} Add_Subdomain ${i+1} ${subdomain_list} - \ ${bier_global} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[0]} ${i+1} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${new_subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bier_global} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ Extract_NodeConfig_Output_And_Verify_Value ${resp2} 1 0 ${i+1} ${1} - \ ... 10.41.41.41/22 fe80::7009:fe25:8170:36af/64 64-bit ${i+1} ${2} - \ ... OSPF 64-bit ${i+1} ${0} ${256} - \ ... ${9} ${4} ${64} ${13} ${4} - -TC4_Add Ipv4 Of Subdomain - [Documentation] Add one Ipv4 element to Ipv4list in container Af of the subdomain - ${af} Add_Or_Modify_Ipv4 ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 17 5 - ... 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[1]} ${MT_ID_LIST[0]} ${i+1} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${new_subdomain_list} Add_Subdomain ${i+1} ${subdomain_list} - \ ${bier_global} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[0]} ${i+1} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${new_subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bier_global} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ Extract_NodeConfig_Output_And_Verify_Value ${resp2} 0 1 ${i+1} ${1} - \ ... 10.41.41.41/22 fe80::7009:fe25:8170:36af/64 64-bit ${i+1} ${1} - \ ... OSPF 64-bit ${i+1} ${0} ${64} - \ ... ${17} ${4} ${64} ${5} ${4} - -TC4_Modify Leaf Of Domain - [Documentation] Modify {bitstringlength} and {bfr_id} value for a domain - ${af} Add_Or_Modify_Ipv4 ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 17 5 - ... 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[1]} ${MT_ID_LIST[0]} ${i+1} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${new_subdomain_list} Add_Subdomain ${i+1} ${subdomain_list} - \ ${bier_global} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[1]} ${10} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${new_subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bier_global} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ ${root} To Json ${resp2.content} - \ ${out_put} Get From Dictionary ${root} output - \ ${node_list} Get From Dictionary ${out_put} node - \ ${node} Get From List ${node_list} 0 - \ ${node_id} Get From Dictionary ${node} node-id - \ ${bier_node_params} Get From Dictionary ${node} bier-node-params - \ ${domain_list} Get From Dictionary ${bier_node_params} domain - \ ${domain} Get From List ${domain_list} 0 - \ ${domain_id} Get From Dictionary ${domain} domain-id - \ ${bier_global} Get From Dictionary ${domain} bier-global - \ ${bit_string_length} Get From Dictionary ${bier_global} bitstringlength - \ ${bfr_id} Get From Dictionary ${bier_global} bfr-id - \ BuiltIn.Should_Be_Equal ${bit_string_length} ${BITSTRINGLENGTH_LIST[1]} - \ BuiltIn.Should_Be_Equal ${bfr_id} ${BFR_ID} - -TC4_Modify Leaf Of Subdomain - [Documentation] Modify {igp_type}, {mt_id} and {bfr_id} value for every subdomain - ${af} Add_Or_Modify_Ipv4 ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 17 5 - ... 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[0]} ${MT_ID_LIST[1]} ${i+5} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${new_subdomain_list} Add_Subdomain ${i+1} ${subdomain_list} - \ ${bier_global} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[1]} ${10} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${new_subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bier_global} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ ${root} To Json ${resp2.content} - \ ${out_put} Get From Dictionary ${root} output - \ ${node_list} Get From Dictionary ${out_put} node - \ ${node} Get From List ${node_list} 0 - \ ${node_id} Get From Dictionary ${node} node-id - \ ${bier_node_params} Get From Dictionary ${node} bier-node-params - \ ${domain_list} Get From Dictionary ${bier_node_params} domain - \ ${domain} Get From List ${domain_list} 0 - \ ${bier_global} Get From Dictionary ${domain} bier-global - \ ${subdomain_list} Get From Dictionary ${bier_global} sub-domain - \ ${subdomain} Get From List ${subdomain_list} 0 - \ ${igp_type} Get From Dictionary ${subdomain} igp-type - \ ${subdomain_bfr_id} Get From Dictionary ${subdomain} bfr-id - \ ${mt_id} Get From Dictionary ${subdomain} mt-id - \ BuiltIn.Should_Be_Equal ${igp_type} ${IGP_TYPE_LIST[0]} - \ BuiltIn.Should_Be_Equal ${subdomain_bfr_id} ${i+5} - \ BuiltIn.Should_Be_Equal_As_Strings ${mt_id} ${MT_ID_LIST[1]} - -TC4_Modify Ipv4 Of Subdomain - [Documentation] Modify ${bier_ipv4_mlslab_base} value of one Ipv4 element in one subdomain - ${af} Add_Or_Modify_Ipv4 ${BSL_OF_IPV4_AND_IPV6[2]} ${BSL_OF_IPV4_AND_IPV6[0]} 1 17 5 - ... 4 - : FOR ${i} IN RANGE 4 - \ ${subdomain} Construct_Subdomain ${SUBDOMAIN_ID_LIST[0]} ${IGP_TYPE_LIST[0]} ${MT_ID_LIST[1]} ${i+5} - \ ... ${BITSTRINGLENGTH_LIST[0]} ${af} - \ ${subdomain_list} Create List ${subdomain} - \ ${new_subdomain_list} Add_Subdomain ${i+1} ${subdomain_list} - \ ${bie_rglobal} Construct_Bier_Global ${ENCAPSULATION_TYPE} ${BITSTRINGLENGTH_LIST[1]} ${10} ${IPV4_BFR_PREFIX} - \ ... ${IPV6_BFR_PREFIX} ${new_subdomain_list} - \ ${domain} Construct_Domain ${DOMAIN_ID} ${bie_rglobal} - \ ${domain_list} Create List ${domain} - \ ${node} Create Dictionary topology-id ${TOPOLOGY_ID} node-id ${i+1} - \ ... domain ${domain_list} - \ ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api configure-node ${node} - \ Verify_Configuration_Success_Or_Not ${resp1} - \ ${node_list} Create List ${i+1} - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} node ${node_list} - \ ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api query-node ${input} - \ ${root} To Json ${resp2.content} - \ ${out_put} Get From Dictionary ${root} output - \ ${nodelist} Get From Dictionary ${out_put} node - \ ${node} Get From List ${node_list} 0 - \ ${nodeid} Get From Dictionary ${node} node-id - \ ${bier_node_params} Get From Dictionary ${node} bier-node-params - \ ${domain_list} Get From Dictionary ${bier_node_params} domain - \ ${domain} Get From List ${domain_list} 0 - \ ${bier_global} Get From Dictionary ${domain} bier-global - \ ${subdomain_list} Get From Dictionary ${bier_global} sub-domain - \ ${subdomain} Get From List ${subdomain_list} 0 - \ ${af} Get From Dictionary ${subdomain} af - \ ${ipv4_list} Get From Dictionary ${af} ipv4 - \ ${ipv4} Get From List ${ipv4_list} 1 - \ ${bier_ipv4_mlslab_base} Get From Dictionary ${ipv4} bier-mpls-label-base - \ BuiltIn.Should_Be_Equal ${bier_ipv4_mlslab_base} ${BIER_IPV4_MLSLAB_BASE} - -TC4_Delete Ipv4 Of Node4 - [Documentation] Delete Ipv4list in node4 - ${ipv4_one} Create Dictionary bitstringlength 64 bier-mpls-label-base 17 bier-mpls-label-range-size - ... 4 - ${ipv4_two} Create Dictionary bitstringlength 256 bier-mpls-label-base 1 bier-mpls-label-range-size - ... 4 - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} sub-domain-id - ... ${SUBDOMAIN_ID_LIST[0]} node-id ${NOID_ID_LIST[3]} ipv4 ${ipv4_one} - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-ipv4 ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} sub-domain-id - ... ${SUBDOMAIN_ID_LIST[0]} node-id ${NOID_ID_LIST[3]} ipv4 ${ipv4_two} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-ipv4 ${input2} - Verify_Configuration_Success_Or_Not ${resp2} - -TC4_Delete Node4 - [Documentation] Delete node4 - : FOR ${i} IN RANGE 2 - \ ${input} Create Dictionary topology-id ${TOPOLOGY_ID} domain-id ${DOMAIN_ID} - \ ... sub-domain-id ${i+1} node-id ${SUBDOMAIN_ID_LIST[3]} - \ ${resp} Send_Request_Operation_Besides_QueryTopology_Id bier-topology-api delete-node ${input} - \ Verify_Configuration_Success_Or_Not ${resp} - -TC5_Add Channel - [Documentation] Configure two channels - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} name channel-1 src-ip - ... 1.1.1.1 dst-group 224.1.1.1 domain-id ${DOMAIN_ID} sub-domain-id - ... ${SUBDOMAIN_ID_LIST[0]} source-wildcard 24 group-wildcard 30 - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api add-channel ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} name channel-2 src-ip - ... 2.2.2.2 dst-group 225.1.1.1 domain-id ${DOMAIN_ID} sub-domain-id - ... ${SUBDOMAIN_ID_LIST[1]} source-wildcard 24 group-wildcard 30 - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api add-channel ${input2} - Verify_Configuration_Success_Or_Not ${resp2} - ${input3} Create Dictionary topology-id ${TOPOLOGY_ID} - ${resp3} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api get-channel ${input3} - ${root} To Json ${resp3.content} - ${out_put} Get From Dictionary ${root} output - ${channel_name_list} Get From Dictionary ${out_put} channel-name - ${channel_num} Get Length ${channel_name_list} - BuiltIn.Should_Be_Equal ${channel_num} ${CHANNEL_NUM} - ${channel_name1} Get From List ${channel_name_list} 0 - ${name1} Get From Dictionary ${channel_name1} name - @{channel_list} Create List channel-1 channel-2 - List Should Contain Value ${channel_list} ${name1} - ${channel_name2} Get From List ${channel_name_list} 1 - ${name2} Get From Dictionary ${channel_name2} name - List Should Contain Value ${channel_list} ${name2} - -TC5_Modify Channel - [Documentation] Modify {src_ip} and {dst_group} value of channel-1 - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} name channel-1 src-ip - ... 3.3.3.3 dst-group 226.1.1.1 domain-id ${DOMAIN_ID} sub-domain-id - ... ${SUBDOMAIN_ID_LIST[0]} source-wildcard 24 group-wildcard 30 - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api modify-channel ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${channel_list} Create List channel-1 - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name ${channellist} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api query-channel ${input2} - ${channel} Extract_Channel_Output_And_Verify_Value ${resp2} channel-1 3.3.3.3 226.1.1.1 ${1} - ... ${1} ${24} ${30} - -TC5_Deploy Channel - [Documentation] Configure ingress-node, egress-node and deploy one channel to device - ${egress_node1} Create Dictionary node-id 2 - ${egress_node2} Create Dictionary node-id 3 - ${egress_node} Create List ${egress_node1} ${egress_node2} - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name channel-1 ingress-node - ... 1 egress-node ${egress_node} - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api deploy-channel ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${channel_list} Create List channel-1 - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name ${channel_list} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api query-channel ${input2} - ${channel} Extract_Channel_Output_And_Verify_Value ${resp2} channel-1 3.3.3.3 226.1.1.1 ${1} - ... ${1} ${24} ${30} - Extract_Channel_Ingress_And_Egress_Node_Output_And_Verify_Value ${channel} 1 2 3 - -TC5_Modify Deploy Channel - [Documentation] Modify ingress-node, egress-node and deploy channel to device again - ${egress_node1} Create Dictionary node-id 1 - ${egress_node2} Create Dictionary node-id 3 - ${egress_node} Create List ${egress_node1} ${egress_node2} - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name channel-1 ingress-node - ... 2 egress-node ${egress_node} - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api deploy-channel ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${channel_list} Create List channel-1 - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name ${channel_list} - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api query-channel ${input2} - ${root} To Json ${resp2.content} - ${out_put} Get From Dictionary ${root} output - ${channel_list} Get From Dictionary ${out_put} channel - ${channel} Get From List ${channel_list} 0 - Extract_Channel_Ingress_And_Egress_Node_Output_And_Verify_Value ${channel} 2 1 3 - -TC5_Remove Channel - [Documentation] Remove all channels - ${input1} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name channel-1 - ${resp1} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api remove-channel ${input1} - Verify_Configuration_Success_Or_Not ${resp1} - ${input2} Create Dictionary topology-id ${TOPOLOGY_ID} channel-name channel-2 - ${resp2} Send_Request_Operation_Besides_QueryTopology_Id bier-channel-api remove-channel ${input2} - Verify_Configuration_Success_Or_Not ${resp2} diff --git a/csit/suites/bier/basic/__init__.robot b/csit/suites/bier/basic/__init__.robot index 00ea74f70c..29d59abc80 100644 --- a/csit/suites/bier/basic/__init__.robot +++ b/csit/suites/bier/basic/__init__.robot @@ -1,8 +1,5 @@ *** Settings *** -Suite Setup Start Mininet -Suite Teardown Stop Mininet -Library SSHLibrary -Resource ../../../libraries/Utils.robot - -*** Variables *** -${start} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo tree,3 --switch ovsk +Suite Setup RequestsLibrary.Create_Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_YANG_JSON} +Suite Teardown +Library RequestsLibrary +Resource ../../../libraries/BierTeResource.robot diff --git a/csit/variables/bier/bier_bgp_configuration/data.json b/csit/variables/bier/bier_bgp_configuration/data.json new file mode 100644 index 0000000000..2c71d0f15f --- /dev/null +++ b/csit/variables/bier/bier_bgp_configuration/data.json @@ -0,0 +1,137 @@ +{ + "network-instances":{ + "network-instance": [ + { + "name": "global-bgp", + "protocols": { + "protocol": [ + { + "identifier": "openconfig-policy-types:BGP", + "name": "example-bgp-rib", + "bgp-openconfig-extensions:bgp": { + "global": { + "config": { + "as": $AS, + "router-id": $ROUTERID + }, + "afi-safis": { + "afi-safi": [ + { + "afi-safi-name": "openconfig-bgp-types:L2VPN-EVPN" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV6-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV6-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV4-L3VPN-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV6-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV4-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:LINKSTATE" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV4-LABELLED-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV6-L3VPN-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV6-LABELLED-UNICAST" + }, + { + "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV4-UNICAST" + } + ] + } + }, + "neighbors": { + "neighbor": [ + { + "neighbor-address": $NEIGHBORADDRESS, + "timers": { + "config": { + "keepalive-interval": 30, + "hold-time": 180, + "connect-retry": 10, + "minimum-advertisement-interval": 30 + } + }, + "route-reflector": { + "config": { + "route-reflector-client": false + } + }, + "transport": { + "config": { + "mtu-discovery": false, + "passive-mode": false + } + }, + "config": { + "peer-as": $PEERAS, + "peer-type": "INTERNAL", + "send-community": "NONE", + "route-flap-damping": false + }, + "afi-safis": { + "afi-safi": [ + { + "afi-safi-name": "openconfig-bgp-types:L2VPN-EVPN" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV6-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV6-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV4-L3VPN-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV6-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV4-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:LINKSTATE" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV4-LABELLED-UNICAST" + }, + { + "afi-safi-name": "bgp-openconfig-extensions:IPV6-L3VPN-FLOW" + }, + { + "afi-safi-name": "openconfig-bgp-types:IPV6-LABELLED-UNICAST" + }, + { + "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV4-UNICAST" + } + ] + } + } + ] + } + } + } + ] + } + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_bgp_configuration/location.uri b/csit/variables/bier/bier_bgp_configuration/location.uri new file mode 100644 index 0000000000..62639d366a --- /dev/null +++ b/csit/variables/bier/bier_bgp_configuration/location.uri @@ -0,0 +1 @@ +/restconf/config/openconfig-network-instance:network-instances \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/add_channel/location.uri b/csit/variables/bier/bier_channel_configuration/add_channel/location.uri new file mode 100644 index 0000000000..66a0f150e5 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/add_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:add-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/add_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/add_channel/post_data.json new file mode 100644 index 0000000000..6f5d3b53d8 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/add_channel/post_data.json @@ -0,0 +1,12 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + name:$CHANNELNAME, + src-ip:"$SRCIP", + dst-group:"$DSTGROUP", + source-wildcard:24, + group-wildcard:24, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/deploy_channel/location.uri b/csit/variables/bier/bier_channel_configuration/deploy_channel/location.uri new file mode 100644 index 0000000000..454e7ef7a3 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/deploy_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:deploy-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/deploy_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/deploy_channel/post_data.json new file mode 100644 index 0000000000..3a97bdbe67 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/deploy_channel/post_data.json @@ -0,0 +1,27 @@ +{ + "input":{ + "topology-id": $TOPOLOGYID, + "channel-name": $CHANNELNAME, + "ingress-node": $INGRESSNODE, + "src-tp": "$SRCTP", + "egress-node": [ + { + node-id:$NODEID1, + rcv-tp:[ + { + tp:"$RCVTP1" + } + ] + }, + { + node-id:$NODEID2, + rcv-tp:[ + { + tp:"$RCVTP2" + } + ] + } + ], + "bier-forwarding-type":"bier-te" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/get_channel/location.uri b/csit/variables/bier/bier_channel_configuration/get_channel/location.uri new file mode 100644 index 0000000000..fbe66dbe78 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/get_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:get-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/get_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/get_channel/post_data.json new file mode 100644 index 0000000000..408cd4c7c9 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/get_channel/post_data.json @@ -0,0 +1,5 @@ +{ + input:{ + topology-id:$TOPOLOGYID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/get_channel/response.json b/csit/variables/bier/bier_channel_configuration/get_channel/response.json new file mode 100644 index 0000000000..c3ad767d6f --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/get_channel/response.json @@ -0,0 +1,15 @@ +{ + "output": { + "channel-name": [ + { + "name": "channel1" + }, + { + "name": "channel2" + }, + { + "name": "channel3" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/modify_channel/location.uri b/csit/variables/bier/bier_channel_configuration/modify_channel/location.uri new file mode 100644 index 0000000000..855f3e030e --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/modify_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:modify-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/modify_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/modify_channel/post_data.json new file mode 100644 index 0000000000..6f5d3b53d8 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/modify_channel/post_data.json @@ -0,0 +1,12 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + name:$CHANNELNAME, + src-ip:"$SRCIP", + dst-group:"$DSTGROUP", + source-wildcard:24, + group-wildcard:24, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel/location.uri b/csit/variables/bier/bier_channel_configuration/query_channel/location.uri new file mode 100644 index 0000000000..a06bee4b4c --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:query-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/query_channel/post_data.json new file mode 100644 index 0000000000..0baeabe02a --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel/post_data.json @@ -0,0 +1,8 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + channel-name:[ + $CHANNEL1,$CHANNEL2 + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel/response.json b/csit/variables/bier/bier_channel_configuration/query_channel/response.json new file mode 100644 index 0000000000..ed4106a408 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel/response.json @@ -0,0 +1,24 @@ +{ + "output": { + "channel": [ + { + "name": "channel2", + "src-ip": "2.2.2.2", + "sub-domain-id": 1, + "source-wildcard": 24, + "dst-group": "239.2.2.2", + "domain-id": 1, + "group-wildcard": 24 + }, + { + "name": "channel1", + "src-ip": "1.1.1.1", + "sub-domain-id": 1, + "source-wildcard": 24, + "dst-group": "239.1.1.1", + "domain-id": 1, + "group-wildcard": 24 + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel_with_port/location.uri b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/location.uri new file mode 100644 index 0000000000..fed6214ec0 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:query-channel-with-port \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel_with_port/post_data.json b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/post_data.json new file mode 100644 index 0000000000..9fe9536f29 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/post_data.json @@ -0,0 +1,8 @@ +{ + input:{ + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + node-id:$NODEID, + tp-id:$TPID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/query_channel_with_port/response.json b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/response.json new file mode 100644 index 0000000000..a2d618af21 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/query_channel_with_port/response.json @@ -0,0 +1,16 @@ +{ + "output": { + "query-channel": [ + { + "channel-name": "channel1", + "is-rcv-tp": true, + "bfir": "1111.1111.1111" + }, + { + "channel-name": "channel2", + "is-rcv-tp": true, + "bfir": "1111.1111.1111" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/remove_channel/location.uri b/csit/variables/bier/bier_channel_configuration/remove_channel/location.uri new file mode 100644 index 0000000000..28ffb0ffef --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/remove_channel/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-channel-api:remove-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/remove_channel/post_data.json b/csit/variables/bier/bier_channel_configuration/remove_channel/post_data.json new file mode 100644 index 0000000000..cd12d2ab74 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/remove_channel/post_data.json @@ -0,0 +1,6 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + channel-name:$CHANNELNAME + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_channel_configuration/success_response.json b/csit/variables/bier/bier_channel_configuration/success_response.json new file mode 100644 index 0000000000..e260579438 --- /dev/null +++ b/csit/variables/bier/bier_channel_configuration/success_response.json @@ -0,0 +1,10 @@ +{ + "output": + { + "configure-result": + { + "errorCause": "", + "result": "SUCCESS" + } + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/configure_domain/location.uri b/csit/variables/bier/bier_domain_configuration/configure_domain/location.uri new file mode 100644 index 0000000000..2072077f9b --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/configure_domain/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:configure-domain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/configure_domain/post_data.json b/csit/variables/bier/bier_domain_configuration/configure_domain/post_data.json new file mode 100644 index 0000000000..85e156a3f7 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/configure_domain/post_data.json @@ -0,0 +1,7 @@ +{ + input: + { + topology-id: $TOPOLOGYID, + domain: [$DOMAINID1,$DOMAINID2] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/configure_subdomain/location.uri b/csit/variables/bier/bier_domain_configuration/configure_subdomain/location.uri new file mode 100644 index 0000000000..3da74d0ac1 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/configure_subdomain/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:configure-subdomain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/configure_subdomain/post_data.json b/csit/variables/bier/bier_domain_configuration/configure_subdomain/post_data.json new file mode 100644 index 0000000000..ef45c4b1e1 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/configure_subdomain/post_data.json @@ -0,0 +1,8 @@ +{ + input: + { + topology-id: $TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain: [$SUBDOMAIN1,$SUBDOMAIN2] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/delete_domain/location.uri b/csit/variables/bier/bier_domain_configuration/delete_domain/location.uri new file mode 100644 index 0000000000..68d44b58d4 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/delete_domain/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:delete-domain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/delete_domain/post_data.json b/csit/variables/bier/bier_domain_configuration/delete_domain/post_data.json new file mode 100644 index 0000000000..6bc7fb2ec4 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/delete_domain/post_data.json @@ -0,0 +1,7 @@ +{ + input: + { + topology-id: $TOPOLOGYID, + domain-id: $DOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/delete_subdomain/location.uri b/csit/variables/bier/bier_domain_configuration/delete_subdomain/location.uri new file mode 100644 index 0000000000..19ae998b96 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/delete_subdomain/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:delete-subdomain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/delete_subdomain/post_data.json b/csit/variables/bier/bier_domain_configuration/delete_subdomain/post_data.json new file mode 100644 index 0000000000..3122164ff6 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/delete_subdomain/post_data.json @@ -0,0 +1,8 @@ +{ + input: + { + topology-id: $TOPOLOGYID, + domain-id: $DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_domain/location.uri b/csit/variables/bier/bier_domain_configuration/query_domain/location.uri new file mode 100644 index 0000000000..185c35d4a4 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_domain/location.uri @@ -0,0 +1 @@ +/restconf/operations/bier-topology-api:query-domain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_domain/post_data.json b/csit/variables/bier/bier_domain_configuration/query_domain/post_data.json new file mode 100644 index 0000000000..08ad0bccbc --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_domain/post_data.json @@ -0,0 +1,6 @@ +{ + input: + { + topology-id: $TOPOLOGYID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_domain/response.json b/csit/variables/bier/bier_domain_configuration/query_domain/response.json new file mode 100644 index 0000000000..951aee3e88 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_domain/response.json @@ -0,0 +1,9 @@ +{ + "output": { + "domain": [ + { + "domain-id": 1 + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_subdomain/location.uri b/csit/variables/bier/bier_domain_configuration/query_subdomain/location.uri new file mode 100644 index 0000000000..6ec6e07392 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_subdomain/location.uri @@ -0,0 +1 @@ +/restconf/operations/bier-topology-api:query-subdomain \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_subdomain/post_data.json b/csit/variables/bier/bier_domain_configuration/query_subdomain/post_data.json new file mode 100644 index 0000000000..cc7854c7b1 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_subdomain/post_data.json @@ -0,0 +1,7 @@ +{ + input: + { + topology-id: $TOPOLOGYID, + domain-id:$DOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_domain_configuration/query_subdomain/response.json b/csit/variables/bier/bier_domain_configuration/query_subdomain/response.json new file mode 100644 index 0000000000..ee8a4db238 --- /dev/null +++ b/csit/variables/bier/bier_domain_configuration/query_subdomain/response.json @@ -0,0 +1,9 @@ +{ + "output": { + "subdomain": [ + { + "sub-domain-id": 1 + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_init_all/bier_init_biertopology/data.json b/csit/variables/bier/bier_init_all/bier_init_biertopology/data.json new file mode 100644 index 0000000000..a74a19e401 --- /dev/null +++ b/csit/variables/bier/bier_init_all/bier_init_biertopology/data.json @@ -0,0 +1,688 @@ +{ + "bier-network-topology": { + "bier-topology": [ + { + "topology-id": "example-linkstate-topology", + "bier-link": [ + { + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1111" + } + }, + { + "link-id": "1111.1111.1111,192.168.57.11-1111.1111.1155,192.168.57.15", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1155", + "dest-tp": "fei-0/1/0/7" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/7", + "source-node": "1111.1111.1111" + } + }, + { + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1111" + } + }, + { + "link-id": "1111.1111.1122,192.168.51.2-1111.1111.1111,192.168.51.1", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1122" + } + }, + { + "link-id": "1111.1111.1133,192.168.55.13-1111.1111.1144,192.168.55.14", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/5" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/5", + "source-node": "1111.1111.1133" + } + }, + { + "link-id": "1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1133" + } + }, + { + "link-id": "1111.1111.1122,192.168.56.12-1111.1111.1144,192.168.56.14", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/6" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/6", + "source-node": "1111.1111.1122" + } + }, + { + "link-id": "1111.1111.1144,192.168.55.14-1111.1111.1133,192.168.55.13", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/5" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/5", + "source-node": "1111.1111.1144" + } + }, + { + "link-id": "1111.1111.1144,192.168.56.14-1111.1111.1122,192.168.56.12", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/6" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/6", + "source-node": "1111.1111.1144" + } + }, + { + "link-id": "1111.1111.1155,192.168.57.15-1111.1111.1111,192.168.57.11", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/7" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/7", + "source-node": "1111.1111.1155" + } + } + ], + "bier-node": [ + { + "node-id": "1111.1111.1144", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1144", + "name": "1111.1111.1144", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 66 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 67 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 68 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 69, + "tp-ip-prefix": "192.168.56.14" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 70 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 71 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 72, + "tp-ip-prefix": "192.168.55.14" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 73, + "tp-ip-prefix": "192.168.50.14" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 74 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 75, + "tp-ip-prefix": "192.168.51.4" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 77 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 78 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 79 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 81 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 83 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 84 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 85 + } + ] + }, + { + "node-id": "1111.1111.1111", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1111", + "name": "1111.1111.1111", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 2 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 3 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 4 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 5 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 6, + "tp-ip-prefix": "192.168.57.11" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 7, + "tp-ip-prefix": "192.168.54.11" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 8 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 9, + "tp-ip-prefix": "192.168.50.11" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 10, + "tp-ip-prefix": "192.168.52.11" + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 11, + "tp-ip-prefix": "192.168.51.1" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 13 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 14 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 15 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 17 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 19 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 20 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 21 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 22 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 23, + "tp-ip-prefix": "192.168.88.1" + } + ] + }, + { + "node-id": "1111.1111.1155", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1155", + "name": "1111.1111.1155", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 86 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 87 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 88 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 89 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 90, + "tp-ip-prefix": "192.168.57.15" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 91 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 92 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 93, + "tp-ip-prefix": "192.168.50.15" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 94 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 95 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 97 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 98 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 99 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 101 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 103 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 104 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 105 + } + ] + }, + { + "node-id": "1111.1111.1122", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1122", + "name": "1111.1111.1122", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 24 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 25 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 26 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 27, + "tp-ip-prefix": "192.168.56.12" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 28 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 29 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 30 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 31, + "tp-ip-prefix": "192.168.50.12" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 32 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 33, + "tp-ip-prefix": "192.168.51.2" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 35 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 36 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 37 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 39 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 41 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 42 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 43 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 44, + "tp-ip-prefix": "192.168.61.2" + } + ] + }, + { + "node-id": "1111.1111.1133", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1133", + "name": "1111.1111.1133", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 45 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 46, + "tp-ip-prefix": "192.168.2.13" + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 47 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 48 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 49 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 50, + "tp-ip-prefix": "192.168.54.13" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 51, + "tp-ip-prefix": "192.168.55.13" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 52, + "tp-ip-prefix": "192.168.50.13" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 53 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 54 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 56 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 57 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 58 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 60 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 62 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 63 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 64 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 65 + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_init_all/bier_init_biertopology/location.uri b/csit/variables/bier/bier_init_all/bier_init_biertopology/location.uri new file mode 100644 index 0000000000..4af752320b --- /dev/null +++ b/csit/variables/bier/bier_init_all/bier_init_biertopology/location.uri @@ -0,0 +1 @@ +restconf/config/bier-topology:bier-network-topology \ No newline at end of file diff --git a/csit/variables/bier/bier_init_all/bier_init_channel/data.json b/csit/variables/bier/bier_init_all/bier_init_channel/data.json new file mode 100644 index 0000000000..b2b921e932 --- /dev/null +++ b/csit/variables/bier/bier_init_all/bier_init_channel/data.json @@ -0,0 +1,9 @@ +{ + "bier-network-channel": { + "bier-channel": [ + { + "topology-id": "example-linkstate-topology" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_init_all/bier_init_channel/location.uri b/csit/variables/bier/bier_init_all/bier_init_channel/location.uri new file mode 100644 index 0000000000..a1da516cb8 --- /dev/null +++ b/csit/variables/bier/bier_init_all/bier_init_channel/location.uri @@ -0,0 +1 @@ +restconf/config/bier-channel:bier-network-channel \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node0/data.json b/csit/variables/bier/bier_netconf_configuration/config_node0/data.json new file mode 100644 index 0000000000..7bedb64a2a --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node0/data.json @@ -0,0 +1,12 @@ +{ + "node": + { + "node-id": $NODEID, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:host": $NETCONFIP, + "netconf-node-topology:keepalive-delay": 0, + "netconf-node-topology:port": $NETCONFPORT, + "netconf-node-topology:username": "zte", + "netconf-node-topology:password": "zte" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node0/location.uri b/csit/variables/bier/bier_netconf_configuration/config_node0/location.uri new file mode 100644 index 0000000000..90655054f2 --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node0/location.uri @@ -0,0 +1 @@ +/restconf/config/network-topology:network-topology/topology/topology-netconf/node/1111.1111.1111 \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node1/data.json b/csit/variables/bier/bier_netconf_configuration/config_node1/data.json new file mode 100644 index 0000000000..7bedb64a2a --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node1/data.json @@ -0,0 +1,12 @@ +{ + "node": + { + "node-id": $NODEID, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:host": $NETCONFIP, + "netconf-node-topology:keepalive-delay": 0, + "netconf-node-topology:port": $NETCONFPORT, + "netconf-node-topology:username": "zte", + "netconf-node-topology:password": "zte" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node1/location.uri b/csit/variables/bier/bier_netconf_configuration/config_node1/location.uri new file mode 100644 index 0000000000..7b4515733b --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node1/location.uri @@ -0,0 +1 @@ +/restconf/config/network-topology:network-topology/topology/topology-netconf/node/1111.1111.1122 \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node2/data.json b/csit/variables/bier/bier_netconf_configuration/config_node2/data.json new file mode 100644 index 0000000000..7bedb64a2a --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node2/data.json @@ -0,0 +1,12 @@ +{ + "node": + { + "node-id": $NODEID, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:host": $NETCONFIP, + "netconf-node-topology:keepalive-delay": 0, + "netconf-node-topology:port": $NETCONFPORT, + "netconf-node-topology:username": "zte", + "netconf-node-topology:password": "zte" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node2/location.uri b/csit/variables/bier/bier_netconf_configuration/config_node2/location.uri new file mode 100644 index 0000000000..7487247e58 --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node2/location.uri @@ -0,0 +1 @@ +/restconf/config/network-topology:network-topology/topology/topology-netconf/node/1111.1111.1133 \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node3/data.json b/csit/variables/bier/bier_netconf_configuration/config_node3/data.json new file mode 100644 index 0000000000..7bedb64a2a --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node3/data.json @@ -0,0 +1,12 @@ +{ + "node": + { + "node-id": $NODEID, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:host": $NETCONFIP, + "netconf-node-topology:keepalive-delay": 0, + "netconf-node-topology:port": $NETCONFPORT, + "netconf-node-topology:username": "zte", + "netconf-node-topology:password": "zte" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node3/location.uri b/csit/variables/bier/bier_netconf_configuration/config_node3/location.uri new file mode 100644 index 0000000000..8813e51a4d --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node3/location.uri @@ -0,0 +1 @@ +/restconf/config/network-topology:network-topology/topology/topology-netconf/node/1111.1111.1144 \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node4/data.json b/csit/variables/bier/bier_netconf_configuration/config_node4/data.json new file mode 100644 index 0000000000..7bedb64a2a --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node4/data.json @@ -0,0 +1,12 @@ +{ + "node": + { + "node-id": $NODEID, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:host": $NETCONFIP, + "netconf-node-topology:keepalive-delay": 0, + "netconf-node-topology:port": $NETCONFPORT, + "netconf-node-topology:username": "zte", + "netconf-node-topology:password": "zte" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_netconf_configuration/config_node4/location.uri b/csit/variables/bier/bier_netconf_configuration/config_node4/location.uri new file mode 100644 index 0000000000..518e7b4f9c --- /dev/null +++ b/csit/variables/bier/bier_netconf_configuration/config_node4/location.uri @@ -0,0 +1 @@ +/restconf/config/network-topology:network-topology/topology/topology-netconf/node/1111.1111.1155 \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_node/config_node_response.json b/csit/variables/bier/bier_node_configuration/configure_node/config_node_response.json new file mode 100644 index 0000000000..a5e89f8ce1 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_node/config_node_response.json @@ -0,0 +1,701 @@ +{ + "output": { + "node": [ + { + "node-id": "1111.1111.1144", + "bier-node-params": { + "domain": [ + { + "domain-id": 1, + "bier-global": { + "ipv6-bfr-prefix": "fe80::7009:fe25:8170:36af/64", + "ipv4-bfr-prefix": "192.168.0.100/24", + "sub-domain": [ + { + "sub-domain-id": 1, + "igp-type": "ISIS", + "af": { + "ipv4": [ + { + "bitstringlength": 64, + "bier-mpls-label-base": 10, + "bier-mpls-label-range-size": 16 + } + ] + }, + "mt-id": 0, + "bfr-id": 4, + "bitstringlength": "64-bit" + } + ], + "encapsulation-type": "ietf-bier:bier-encapsulation-mpls", + "bitstringlength": "64-bit", + "bfr-id": 4 + } + } + ] + }, + "latitude": 0, + "router-id": "1111.1111.1144", + "name": "1111.1111.1144", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 66 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 67 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 68 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 69, + "tp-ip-prefix": "192.168.56.14" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 70 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 71 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 72, + "tp-ip-prefix": "192.168.55.14" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 73, + "tp-ip-prefix": "192.168.50.14" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 74 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 75, + "tp-ip-prefix": "192.168.51.4" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 77 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 78 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 79 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 81 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 83 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 84 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 85 + } + ] + }, + { + "node-id": "1111.1111.1111", + "bier-node-params": { + "domain": [ + { + "domain-id": 1, + "bier-global": { + "ipv6-bfr-prefix": "fe80::7009:fe25:8170:36af/64", + "ipv4-bfr-prefix": "192.168.0.100/24", + "sub-domain": [ + { + "sub-domain-id": 1, + "igp-type": "ISIS", + "af": { + "ipv4": [ + { + "bitstringlength": 64, + "bier-mpls-label-base": 10, + "bier-mpls-label-range-size": 16 + } + ] + }, + "mt-id": 0, + "bfr-id": 1, + "bitstringlength": "64-bit" + } + ], + "encapsulation-type": "ietf-bier:bier-encapsulation-mpls", + "bitstringlength": "64-bit", + "bfr-id": 1 + } + } + ] + }, + "latitude": 0, + "router-id": "1111.1111.1111", + "name": "1111.1111.1111", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 2 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 3 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 4 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 5 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 6, + "tp-ip-prefix": "192.168.57.11" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 7, + "tp-ip-prefix": "192.168.54.11" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 8 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 9, + "tp-ip-prefix": "192.168.50.11" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 10, + "tp-ip-prefix": "192.168.52.11" + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 11, + "tp-ip-prefix": "192.168.51.1" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 13 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 14 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 15 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 17 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 19 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 20 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 21 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 22 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 23, + "tp-ip-prefix": "192.168.88.1" + } + ] + }, + { + "node-id": "1111.1111.1155", + "bier-node-params": { + "domain": [ + { + "domain-id": 1, + "bier-global": { + "ipv6-bfr-prefix": "fe80::7009:fe25:8170:36af/64", + "ipv4-bfr-prefix": "192.168.0.100/24", + "sub-domain": [ + { + "sub-domain-id": 1, + "igp-type": "ISIS", + "af": { + "ipv4": [ + { + "bitstringlength": 64, + "bier-mpls-label-base": 10, + "bier-mpls-label-range-size": 16 + } + ] + }, + "mt-id": 0, + "bfr-id": 5, + "bitstringlength": "64-bit" + } + ], + "encapsulation-type": "ietf-bier:bier-encapsulation-mpls", + "bitstringlength": "64-bit", + "bfr-id": 5 + } + } + ] + }, + "latitude": 0, + "router-id": "1111.1111.1155", + "name": "1111.1111.1155", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 86 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 87 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 88 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 89 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 90, + "tp-ip-prefix": "192.168.57.15" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 91 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 92 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 93, + "tp-ip-prefix": "192.168.50.15" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 94 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 95 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 97 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 98 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 99 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 101 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 103 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 104 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 105 + } + ] + }, + { + "node-id": "1111.1111.1122", + "bier-node-params": { + "domain": [ + { + "domain-id": 1, + "bier-global": { + "ipv6-bfr-prefix": "fe80::7009:fe25:8170:36af/64", + "ipv4-bfr-prefix": "192.168.0.100/24", + "sub-domain": [ + { + "sub-domain-id": 1, + "igp-type": "ISIS", + "af": { + "ipv4": [ + { + "bitstringlength": 64, + "bier-mpls-label-base": 10, + "bier-mpls-label-range-size": 16 + } + ] + }, + "mt-id": 0, + "bfr-id": 2, + "bitstringlength": "64-bit" + } + ], + "encapsulation-type": "ietf-bier:bier-encapsulation-mpls", + "bitstringlength": "64-bit", + "bfr-id": 2 + } + } + ] + }, + "latitude": 0, + "router-id": "1111.1111.1122", + "name": "1111.1111.1122", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 24 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 25 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 26 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 27, + "tp-ip-prefix": "192.168.56.12" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 28 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 29 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 30 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 31, + "tp-ip-prefix": "192.168.50.12" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 32 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 33, + "tp-ip-prefix": "192.168.51.2" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 35 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 36 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 37 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 39 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 41 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 42 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 43 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 44, + "tp-ip-prefix": "192.168.61.2" + } + ] + }, + { + "node-id": "1111.1111.1133", + "bier-node-params": { + "domain": [ + { + "domain-id": 1, + "bier-global": { + "ipv6-bfr-prefix": "fe80::7009:fe25:8170:36af/64", + "ipv4-bfr-prefix": "192.168.0.100/24", + "sub-domain": [ + { + "sub-domain-id": 1, + "igp-type": "ISIS", + "af": { + "ipv4": [ + { + "bitstringlength": 64, + "bier-mpls-label-base": 10, + "bier-mpls-label-range-size": 16 + } + ] + }, + "mt-id": 0, + "bfr-id": 3, + "bitstringlength": "64-bit" + } + ], + "encapsulation-type": "ietf-bier:bier-encapsulation-mpls", + "bitstringlength": "64-bit", + "bfr-id": 3 + } + } + ] + }, + "latitude": 0, + "router-id": "1111.1111.1133", + "name": "1111.1111.1133", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 45 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 46, + "tp-ip-prefix": "192.168.2.13" + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 47 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 48 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 49 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 50, + "tp-ip-prefix": "192.168.54.13" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 51, + "tp-ip-prefix": "192.168.55.13" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 52, + "tp-ip-prefix": "192.168.50.13" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 53 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 54 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 56 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 57 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 58 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 60 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 62 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 63 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 64 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 65 + } + ] + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_node/location.uri b/csit/variables/bier/bier_node_configuration/configure_node/location.uri new file mode 100644 index 0000000000..fb104c5e19 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-config-api:configure-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_node/post_data.json b/csit/variables/bier/bier_node_configuration/configure_node/post_data.json new file mode 100644 index 0000000000..a8a55818a3 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_node/post_data.json @@ -0,0 +1,36 @@ +{ + input:{ + topology-id: $TOPOLOGYID, + node-id: $NODEID, + domain:[ + { + domain-id: $DOMAINID, + bier-global:{ + encapsulation-type: "ietf-bier:bier-encapsulation-mpls", + bitstringlength: 64-bit, + ipv4-bfr-prefix: "192.168.0.100/24", + ipv6-bfr-prefix: "fe80::7009:fe25:8170:36af/64", + bfr-id: $DOMAINBFRID, + sub-domain:[ + { + sub-domain-id: $SUBDOMAINID, + igp-type: ISIS, + bfr-id: $SUBDOMAINBFRID, + bitstringlength: 64-bit, + mt-id: 0, + af:{ + ipv4: [ + { + bier-mpls-label-base: 10, + bier-mpls-label-range-size: 16, + bitstringlength: 64 + } + ] + } + } + ] + } + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_te_label/location.uri b/csit/variables/bier/bier_node_configuration/configure_te_label/location.uri new file mode 100644 index 0000000000..a606514e0e --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_te_label/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:configure-te-label \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_te_label/post_data.json b/csit/variables/bier/bier_node_configuration/configure_te_label/post_data.json new file mode 100644 index 0000000000..0779c88969 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_te_label/post_data.json @@ -0,0 +1,8 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + node-id:$NODEID, + label-base:$LABELBASE, + label-range-size:$LABELRANGESIZE + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_te_node/location.uri b/csit/variables/bier/bier_node_configuration/configure_te_node/location.uri new file mode 100644 index 0000000000..66005ff4e1 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_te_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:configure-te-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/configure_te_node/post_data.json b/csit/variables/bier/bier_node_configuration/configure_te_node/post_data.json new file mode 100644 index 0000000000..7c9c691b33 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/configure_te_node/post_data.json @@ -0,0 +1,32 @@ +{ + input:{ + topology-id: $TOPOLOGYID, + node-id: $NODEID, + te-domain:[ + { + domain-id: $DOMAINID, + te-sub-domain:[ + { + sub-domain-id: $SUBDOMAINID, + te-bsl:[ + { + bitstringlength: 64-bit, + te-si:[ + { + si: 1, + te-bp:[ + { + tp-id:"$TPID", + bitposition:$BP + } + ] + } + ] + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_ipv4/location.uri b/csit/variables/bier/bier_node_configuration/delete_ipv4/location.uri new file mode 100644 index 0000000000..b1fa718c91 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_ipv4/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-config-api:delete-ipv4 \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_ipv4/post_data.json b/csit/variables/bier/bier_node_configuration/delete_ipv4/post_data.json new file mode 100644 index 0000000000..704db9f48d --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_ipv4/post_data.json @@ -0,0 +1,13 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + node-id:$NODEID, + ipv4:{ + bier-mpls-label-base: 10, + bier-mpls-label-range-size: 16, + bitstringlength: 64 + } + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_node/location.uri b/csit/variables/bier/bier_node_configuration/delete_node/location.uri new file mode 100644 index 0000000000..2eb40654ee --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-config-api:delete-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_node/post_data.json b/csit/variables/bier/bier_node_configuration/delete_node/post_data.json new file mode 100644 index 0000000000..38f409da45 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_node/post_data.json @@ -0,0 +1,8 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + node-id:$NODEID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_bp/location.uri b/csit/variables/bier/bier_node_configuration/delete_te_bp/location.uri new file mode 100644 index 0000000000..1e6cf0af9b --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_bp/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:delete-te-bp \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_bp/post_data.json b/csit/variables/bier/bier_node_configuration/delete_te_bp/post_data.json new file mode 100644 index 0000000000..551809fedd --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_bp/post_data.json @@ -0,0 +1,11 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + node-id:$NODEID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + bitstringlength:64-bit, + si:1, + tp-id:"$TPID" + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_bsl/location.uri b/csit/variables/bier/bier_node_configuration/delete_te_bsl/location.uri new file mode 100644 index 0000000000..850749e4a0 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_bsl/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:delete-te-bsl \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_bsl/post_data.json b/csit/variables/bier/bier_node_configuration/delete_te_bsl/post_data.json new file mode 100644 index 0000000000..8868b9ba36 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_bsl/post_data.json @@ -0,0 +1,9 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + node-id:$NODEID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + bitstringlength:64-bit + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_label/location.uri b/csit/variables/bier/bier_node_configuration/delete_te_label/location.uri new file mode 100644 index 0000000000..c9d02b31be --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_label/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:delete-te-label \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_label/post_data.json b/csit/variables/bier/bier_node_configuration/delete_te_label/post_data.json new file mode 100644 index 0000000000..26692dcf12 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_label/post_data.json @@ -0,0 +1,6 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + node-id:$NODEID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_si/location.uri b/csit/variables/bier/bier_node_configuration/delete_te_si/location.uri new file mode 100644 index 0000000000..08ca5dee56 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_si/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-te-config-api:delete-te-si \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/delete_te_si/post_data.json b/csit/variables/bier/bier_node_configuration/delete_te_si/post_data.json new file mode 100644 index 0000000000..48c528aa43 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/delete_te_si/post_data.json @@ -0,0 +1,10 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + node-id:$NODEID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID, + bitstringlength:64-bit, + si:1 + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/load_topology/location.uri b/csit/variables/bier/bier_node_configuration/load_topology/location.uri new file mode 100644 index 0000000000..6de609e012 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/load_topology/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:load-topology \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/load_topology/post_data.json b/csit/variables/bier/bier_node_configuration/load_topology/post_data.json new file mode 100644 index 0000000000..38d005c63a --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/load_topology/post_data.json @@ -0,0 +1,4 @@ +{ + input:{ + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/load_topology/response.json b/csit/variables/bier/bier_node_configuration/load_topology/response.json new file mode 100644 index 0000000000..a78ec0943a --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/load_topology/response.json @@ -0,0 +1,9 @@ +{ + "output": { + "topology": [ + { + "topology-id": "example-linkstate-topology" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_link/location.uri b/csit/variables/bier/bier_node_configuration/query_link/location.uri new file mode 100644 index 0000000000..b9b130f7fa --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_link/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-link \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_link/post_data.json b/csit/variables/bier/bier_node_configuration/query_link/post_data.json new file mode 100644 index 0000000000..5c4c7d794d --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_link/post_data.json @@ -0,0 +1,6 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + link:["1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2","1111.1111.1122,192.168.56.12-1111.1111.1144,192.168.56.14","1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11","1111.1111.1111,192.168.57.11-1111.1111.1155,192.168.57.15","1111.1111.1133,192.168.55.13-1111.1111.1144,192.168.55.14"] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_link/response.json b/csit/variables/bier/bier_node_configuration/query_link/response.json new file mode 100644 index 0000000000..b8382f3a03 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_link/response.json @@ -0,0 +1,71 @@ +{ + "output": { + "link": [ + { + "link-id": "1111.1111.1122,192.168.56.12-1111.1111.1144,192.168.56.14", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/6" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/6", + "source-node": "1111.1111.1122" + } + }, + { + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1111" + } + }, + { + "link-id": "1111.1111.1133,192.168.55.13-1111.1111.1144,192.168.55.14", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/5" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/5", + "source-node": "1111.1111.1133" + } + }, + { + "link-id": "1111.1111.1111,192.168.57.11-1111.1111.1155,192.168.57.15", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1155", + "dest-tp": "fei-0/1/0/7" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/7", + "source-node": "1111.1111.1111" + } + }, + { + "link-id": "1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11", + "delay": 0, + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1133" + } + } + ] + } +} diff --git a/csit/variables/bier/bier_node_configuration/query_node/location.uri b/csit/variables/bier/bier_node_configuration/query_node/location.uri new file mode 100644 index 0000000000..d90dd87d1c --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_node/post_data.json b/csit/variables/bier/bier_node_configuration/query_node/post_data.json new file mode 100644 index 0000000000..fde2bae857 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_node/post_data.json @@ -0,0 +1,6 @@ +{ + input:{ + topology-id:"example-linkstate-topology", + node:["1111.1111.1111","1111.1111.1122","1111.1111.1133","1111.1111.1144","1111.1111.1155"] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_node/response.json b/csit/variables/bier/bier_node_configuration/query_node/response.json new file mode 100644 index 0000000000..b4c2b78df9 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_node/response.json @@ -0,0 +1,551 @@ +{ + "output": { + "node": [ + { + "node-id": "1111.1111.1144", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1144", + "name": "1111.1111.1144", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 66 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 67 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 68 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 69, + "tp-ip-prefix": "192.168.56.14" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 70 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 71 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 72, + "tp-ip-prefix": "192.168.55.14" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 73, + "tp-ip-prefix": "192.168.50.14" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 74 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 75, + "tp-ip-prefix": "192.168.51.4" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 77 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 78 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 79 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 81 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 83 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 84 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 85 + } + ] + }, + { + "node-id": "1111.1111.1111", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1111", + "name": "1111.1111.1111", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 2 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 3 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 4 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 5 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 6, + "tp-ip-prefix": "192.168.57.11" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 7, + "tp-ip-prefix": "192.168.54.11" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 8 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 9, + "tp-ip-prefix": "192.168.50.11" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 10, + "tp-ip-prefix": "192.168.52.11" + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 11, + "tp-ip-prefix": "192.168.51.1" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 13 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 14 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 15 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 17 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 19 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 20 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 21 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 22 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 23, + "tp-ip-prefix": "192.168.88.1" + } + ] + }, + { + "node-id": "1111.1111.1155", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1155", + "name": "1111.1111.1155", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 86 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 87 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 88 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 89 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 90, + "tp-ip-prefix": "192.168.57.15" + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 91 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 92 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 93, + "tp-ip-prefix": "192.168.50.15" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 94 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 95 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 97 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 98 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 99 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 101 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 103 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 104 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 105 + } + ] + }, + { + "node-id": "1111.1111.1122", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1122", + "name": "1111.1111.1122", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 24 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 25 + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 26 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 27, + "tp-ip-prefix": "192.168.56.12" + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 28 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 29 + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 30 + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 31, + "tp-ip-prefix": "192.168.50.12" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 32 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 33, + "tp-ip-prefix": "192.168.51.2" + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 35 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 36 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 37 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 39 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 41 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 42 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 43 + }, + { + "tp-id": "fei-0/1/0/1.1", + "if-name": "fei-0/1/0/1.1", + "tp-index": 44, + "tp-ip-prefix": "192.168.61.2" + } + ] + }, + { + "node-id": "1111.1111.1133", + "bier-node-params": {}, + "bier-te-node-params": {}, + "latitude": 0, + "router-id": "1111.1111.1133", + "name": "1111.1111.1133", + "longitude": 0, + "bier-termination-point": [ + { + "tp-id": "atm155-0/1/2/2", + "if-name": "atm155-0/1/2/2", + "tp-index": 1 + }, + { + "tp-id": "atm155-0/1/2/1", + "if-name": "atm155-0/1/2/1", + "tp-index": 45 + }, + { + "tp-id": "fei-0/1/0/8", + "if-name": "fei-0/1/0/8", + "tp-index": 46, + "tp-ip-prefix": "192.168.2.13" + }, + { + "tp-id": "atm155-0/1/2/3", + "if-name": "atm155-0/1/2/3", + "tp-index": 47 + }, + { + "tp-id": "fei-0/1/0/6", + "if-name": "fei-0/1/0/6", + "tp-index": 48 + }, + { + "tp-id": "fei-0/1/0/7", + "if-name": "fei-0/1/0/7", + "tp-index": 49 + }, + { + "tp-id": "fei-0/1/0/4", + "if-name": "fei-0/1/0/4", + "tp-index": 50, + "tp-ip-prefix": "192.168.54.13" + }, + { + "tp-id": "fei-0/1/0/5", + "if-name": "fei-0/1/0/5", + "tp-index": 51, + "tp-ip-prefix": "192.168.55.13" + }, + { + "tp-id": "fei-0/1/0/2", + "if-name": "fei-0/1/0/2", + "tp-index": 52, + "tp-ip-prefix": "192.168.50.13" + }, + { + "tp-id": "fei-0/1/0/3", + "if-name": "fei-0/1/0/3", + "tp-index": 53 + }, + { + "tp-id": "fei-0/1/0/1", + "if-name": "fei-0/1/0/1", + "tp-index": 54 + }, + { + "tp-id": "pos192-0/1/1/3", + "if-name": "pos192-0/1/1/3", + "tp-index": 56 + }, + { + "tp-id": "spi-0/1/0/1", + "if-name": "spi-0/1/0/1", + "tp-index": 57 + }, + { + "tp-id": "pos192-0/1/1/2", + "if-name": "pos192-0/1/1/2", + "tp-index": 58 + }, + { + "tp-id": "pos192-0/1/1/1", + "if-name": "pos192-0/1/1/1", + "tp-index": 60 + }, + { + "tp-id": "te_tunnel1", + "if-name": "te_tunnel1", + "tp-index": 62 + }, + { + "tp-id": "spi-0/1/0/4", + "if-name": "spi-0/1/0/4", + "tp-index": 63 + }, + { + "tp-id": "spi-0/1/0/3", + "if-name": "spi-0/1/0/3", + "tp-index": 64 + }, + { + "tp-id": "spi-0/1/0/2", + "if-name": "spi-0/1/0/2", + "tp-index": 65 + } + ] + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_link/location.uri b/csit/variables/bier/bier_node_configuration/query_subdomain_link/location.uri new file mode 100644 index 0000000000..5ea9ece9fd --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_link/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-subdomain-link \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_link/post_data.json b/csit/variables/bier/bier_node_configuration/query_subdomain_link/post_data.json new file mode 100644 index 0000000000..ebfc8b9b65 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_link/post_data.json @@ -0,0 +1,7 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_link/response.json b/csit/variables/bier/bier_node_configuration/query_subdomain_link/response.json new file mode 100644 index 0000000000..0edaa26da5 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_link/response.json @@ -0,0 +1,84 @@ +{ + "output": { + "subdomain-link": [ + { + "delay": 0, + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1111" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1111,192.168.57.11-1111.1111.1155,192.168.57.15", + "link-dest": { + "dest-node": "1111.1111.1155", + "dest-tp": "fei-0/1/0/7" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/7", + "source-node": "1111.1111.1111" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13", + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1111" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1122,192.168.51.2-1111.1111.1111,192.168.51.1", + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1122" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11", + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1133" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1155,192.168.57.15-1111.1111.1111,192.168.57.11", + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/7" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/7", + "source-node": "1111.1111.1155" + } + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_node/location.uri b/csit/variables/bier/bier_node_configuration/query_subdomain_node/location.uri new file mode 100644 index 0000000000..8b3ef93972 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-subdomain-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_node/post_data.json b/csit/variables/bier/bier_node_configuration/query_subdomain_node/post_data.json new file mode 100644 index 0000000000..ebfc8b9b65 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_node/post_data.json @@ -0,0 +1,7 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_subdomain_node/response.json b/csit/variables/bier/bier_node_configuration/query_subdomain_node/response.json new file mode 100644 index 0000000000..7eb8a26f0d --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_subdomain_node/response.json @@ -0,0 +1,3 @@ +{ + "output": {} +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/location.uri b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/location.uri new file mode 100644 index 0000000000..6c59a67cde --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-te-subdomain-link \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/post_data.json b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/post_data.json new file mode 100644 index 0000000000..ebfc8b9b65 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/post_data.json @@ -0,0 +1,7 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/response.json b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/response.json new file mode 100644 index 0000000000..fb79e23ef3 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_link/response.json @@ -0,0 +1,110 @@ +{ + "output": { + "te-subdomain-link": [ + { + "delay": 0, + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1111" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13", + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1111" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1122,192.168.51.2-1111.1111.1111,192.168.51.1", + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/1", + "source-node": "1111.1111.1122" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1133,192.168.55.13-1111.1111.1144,192.168.55.14", + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/5" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/5", + "source-node": "1111.1111.1133" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11", + "link-dest": { + "dest-node": "1111.1111.1111", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/4", + "source-node": "1111.1111.1133" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1122,192.168.56.12-1111.1111.1144,192.168.56.14", + "link-dest": { + "dest-node": "1111.1111.1144", + "dest-tp": "fei-0/1/0/6" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/6", + "source-node": "1111.1111.1122" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1144,192.168.55.14-1111.1111.1133,192.168.55.13", + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/5" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/5", + "source-node": "1111.1111.1144" + } + }, + { + "delay": 0, + "link-id": "1111.1111.1144,192.168.56.14-1111.1111.1122,192.168.56.12", + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/6" + }, + "loss": 0, + "link-source": { + "source-tp": "fei-0/1/0/6", + "source-node": "1111.1111.1144" + } + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/location.uri b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/location.uri new file mode 100644 index 0000000000..77a972f6a5 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-te-subdomain-node \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/post_data.json b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/post_data.json new file mode 100644 index 0000000000..ebfc8b9b65 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/post_data.json @@ -0,0 +1,7 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + domain-id:$DOMAINID, + sub-domain-id:$SUBDOMAINID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/response.json b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/response.json new file mode 100644 index 0000000000..7eb8a26f0d --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_te_subdomain_node/response.json @@ -0,0 +1,3 @@ +{ + "output": {} +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_topology/location.uri b/csit/variables/bier/bier_node_configuration/query_topology/location.uri new file mode 100644 index 0000000000..5c951b23c6 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_topology/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-topology-api:query-topology \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_topology/post_data.json b/csit/variables/bier/bier_node_configuration/query_topology/post_data.json new file mode 100644 index 0000000000..408cd4c7c9 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_topology/post_data.json @@ -0,0 +1,5 @@ +{ + input:{ + topology-id:$TOPOLOGYID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_node_configuration/query_topology/response.json b/csit/variables/bier/bier_node_configuration/query_topology/response.json new file mode 100644 index 0000000000..35dd111398 --- /dev/null +++ b/csit/variables/bier/bier_node_configuration/query_topology/response.json @@ -0,0 +1,37 @@ +{ + "output": { + "topology-id": "example-linkstate-topology", + "link-id": [ + { + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2" + }, + { + "link-id": "1111.1111.1111,192.168.57.11-1111.1111.1155,192.168.57.15" + }, + { + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13" + }, + { + "link-id": "1111.1111.1133,192.168.55.13-1111.1111.1144,192.168.55.14" + }, + { + "link-id": "1111.1111.1133,192.168.54.13-1111.1111.1111,192.168.54.11" + }, + { + "link-id": "1111.1111.1122,192.168.56.12-1111.1111.1144,192.168.56.14" + }, + { + "link-id": "1111.1111.1144,192.168.55.14-1111.1111.1133,192.168.55.13" + }, + { + "link-id": "1111.1111.1144,192.168.56.14-1111.1111.1122,192.168.56.12" + }, + { + "link-id": "1111.1111.1122,192.168.51.2-1111.1111.1111,192.168.51.1" + }, + { + "link-id": "1111.1111.1155,192.168.57.15-1111.1111.1111,192.168.57.11" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/create_bier_path/location.uri b/csit/variables/bier/bier_pce_configuration/create_bier_path/location.uri new file mode 100644 index 0000000000..c0f329e9ef --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/create_bier_path/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-pce:create-bier-path \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/create_bier_path/post_data.json b/csit/variables/bier/bier_pce_configuration/create_bier_path/post_data.json new file mode 100644 index 0000000000..8775ea9bbb --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/create_bier_path/post_data.json @@ -0,0 +1,15 @@ +{ + input:{ + topology-id:$TOPOLOGYID, + channel-name:$CHANNELNAME, + bfir-node-id:$BFIRNODEID, + bfer:[ + { + bfer-node-id:$BFERNODEID1 + }, + { + bfer-node-id:$BFERNODEID2 + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/create_bier_path/response.json b/csit/variables/bier/bier_pce_configuration/create_bier_path/response.json new file mode 100644 index 0000000000..c760e3774f --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/create_bier_path/response.json @@ -0,0 +1,52 @@ +{ + "output": { + "channel-name": "channel3", + "bfir-node-id": "1111.1111.1111", + "bfer": [ + { + "bfer-node-id": "1111.1111.1133", + "bier-path": { + "path-link": [ + { + "link-source": { + "source-node": "1111.1111.1111", + "source-tp": "fei-0/1/0/4" + }, + "delay": 0, + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13", + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "metric": 10 + } + ], + "path-metric": 10 + } + }, + { + "bfer-node-id": "1111.1111.1122", + "bier-path": { + "path-link": [ + { + "link-source": { + "source-node": "1111.1111.1111", + "source-tp": "fei-0/1/0/1" + }, + "delay": 0, + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "metric": 10 + } + ], + "path-metric": 10 + } + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/location.uri b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/location.uri new file mode 100644 index 0000000000..702322e9e6 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-pce:query-bier-instance-path \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/post_data.json b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/post_data.json new file mode 100644 index 0000000000..158fbc1de0 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/post_data.json @@ -0,0 +1,5 @@ +{ + input:{ + channel-name:$CHANNELNAME + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/response.json b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/response.json new file mode 100644 index 0000000000..c05d28be67 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_instance_path/response.json @@ -0,0 +1,12 @@ +{ + "output": { + "link": [ + { + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2" + }, + { + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_path/location.uri b/csit/variables/bier/bier_pce_configuration/query_bier_path/location.uri new file mode 100644 index 0000000000..4a6cac35c3 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_path/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-pce:query-bier-path \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_path/post_data.json b/csit/variables/bier/bier_pce_configuration/query_bier_path/post_data.json new file mode 100644 index 0000000000..52fdc90149 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_path/post_data.json @@ -0,0 +1,7 @@ +{ + input:{ + channel-name:$CHANNELNAME, + bfir-node-id:$BFIRNODEID, + bfer-node-id:$BFERNODEID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_bier_path/response.json b/csit/variables/bier/bier_pce_configuration/query_bier_path/response.json new file mode 100644 index 0000000000..f1bc39129a --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_bier_path/response.json @@ -0,0 +1,23 @@ +{ + "output": { + "bier-path": { + "path-link": [ + { + "link-source": { + "source-node": "1111.1111.1111", + "source-tp": "fei-0/1/0/1" + }, + "delay": 0, + "link-id": "1111.1111.1111,192.168.51.1-1111.1111.1122,192.168.51.2", + "link-dest": { + "dest-node": "1111.1111.1122", + "dest-tp": "fei-0/1/0/1" + }, + "loss": 0, + "metric": 10 + } + ], + "path-metric": 10 + } + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_channel_through_port/location.uri b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/location.uri new file mode 100644 index 0000000000..a8e9e4e249 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-pce:query_channel_through_port \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_channel_through_port/post_data.json b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/post_data.json new file mode 100644 index 0000000000..59c4a5447f --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/post_data.json @@ -0,0 +1,6 @@ +{ + input:{ + node-id:$NODEID, + tp-id:$TPID + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/query_channel_through_port/response.json b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/response.json new file mode 100644 index 0000000000..54faf7b64b --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/query_channel_through_port/response.json @@ -0,0 +1,14 @@ +{ + "output": { + "related-channel": [ + { + "channel-name": "channel1", + "bfir": "1111.1111.1111" + }, + { + "channel-name": "channel2", + "bfir": "1111.1111.1111" + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/remove_bier_path/location.uri b/csit/variables/bier/bier_pce_configuration/remove_bier_path/location.uri new file mode 100644 index 0000000000..23218c0456 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/remove_bier_path/location.uri @@ -0,0 +1 @@ +restconf/operations/bier-pce:remove-bier-path \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/remove_bier_path/post_data.json b/csit/variables/bier/bier_pce_configuration/remove_bier_path/post_data.json new file mode 100644 index 0000000000..09e0966352 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/remove_bier_path/post_data.json @@ -0,0 +1,11 @@ +{ + input:{ + channel-name:$CHANNELNAME, + bfir-node-id:$BFIRNODEID, + bfer:[ + { + bfer-node-id:$BFERNODEID + } + ] + } +} \ No newline at end of file diff --git a/csit/variables/bier/bier_pce_configuration/remove_bier_path/response.json b/csit/variables/bier/bier_pce_configuration/remove_bier_path/response.json new file mode 100644 index 0000000000..76d00bbfc5 --- /dev/null +++ b/csit/variables/bier/bier_pce_configuration/remove_bier_path/response.json @@ -0,0 +1,30 @@ +{ + "output": { + "channel-name": "channel3", + "bfir-node-id": "1111.1111.1111", + "bfer": [ + { + "bfer-node-id": "1111.1111.1133", + "bier-path": { + "path-link": [ + { + "link-source": { + "source-node": "1111.1111.1111", + "source-tp": "fei-0/1/0/4" + }, + "delay": 0, + "link-id": "1111.1111.1111,192.168.54.11-1111.1111.1133,192.168.54.13", + "link-dest": { + "dest-node": "1111.1111.1133", + "dest-tp": "fei-0/1/0/4" + }, + "loss": 0, + "metric": 10 + } + ], + "path-metric": 10 + } + } + ] + } +} diff --git a/csit/variables/bier/bier_service_configuration/bier_bitstring/data.json b/csit/variables/bier/bier_service_configuration/bier_bitstring/data.json new file mode 100644 index 0000000000..09a7aa7a1a --- /dev/null +++ b/csit/variables/bier/bier_service_configuration/bier_bitstring/data.json @@ -0,0 +1,57 @@ +{ + "bier-bitstring": { + "channel-bitstring": [ + { + "name": "channel2", + "domain-id": 1, + "path-bitstring": [ + { + "path-id": 1500088611, + "subdomain-id": 1, + "bitstringlength": "64-bit", + "bitstring": [ + { + "bitposition": 5 + }, + { + "bitposition": 14 + }, + { + "bitposition": 6 + }, + { + "bitposition": 11 + } + ], + "si": 1 + } + ], + "sub-domain-id": 1 + }, + { + "name": "channel1", + "domain-id": 1, + "path-bitstring": [ + { + "path-id": 1500088610, + "subdomain-id": 1, + "bitstringlength": "64-bit", + "bitstring": [ + { + "bitposition": 5 + }, + { + "bitposition": 9 + }, + { + "bitposition": 6 + } + ], + "si": 1 + } + ], + "sub-domain-id": 1 + } + ] + } +} diff --git a/csit/variables/bier/bier_service_configuration/bier_bitstring/location.uri b/csit/variables/bier/bier_service_configuration/bier_bitstring/location.uri new file mode 100644 index 0000000000..92a5fbc892 --- /dev/null +++ b/csit/variables/bier/bier_service_configuration/bier_bitstring/location.uri @@ -0,0 +1 @@ +restconf/operational/bier-bitstring:bier-bitstring \ No newline at end of file diff --git a/csit/variables/bier/bier_service_configuration/bier_bitstring/response.json b/csit/variables/bier/bier_service_configuration/bier_bitstring/response.json new file mode 100644 index 0000000000..09a7aa7a1a --- /dev/null +++ b/csit/variables/bier/bier_service_configuration/bier_bitstring/response.json @@ -0,0 +1,57 @@ +{ + "bier-bitstring": { + "channel-bitstring": [ + { + "name": "channel2", + "domain-id": 1, + "path-bitstring": [ + { + "path-id": 1500088611, + "subdomain-id": 1, + "bitstringlength": "64-bit", + "bitstring": [ + { + "bitposition": 5 + }, + { + "bitposition": 14 + }, + { + "bitposition": 6 + }, + { + "bitposition": 11 + } + ], + "si": 1 + } + ], + "sub-domain-id": 1 + }, + { + "name": "channel1", + "domain-id": 1, + "path-bitstring": [ + { + "path-id": 1500088610, + "subdomain-id": 1, + "bitstringlength": "64-bit", + "bitstring": [ + { + "bitposition": 5 + }, + { + "bitposition": 9 + }, + { + "bitposition": 6 + } + ], + "si": 1 + } + ], + "sub-domain-id": 1 + } + ] + } +} diff --git a/csit/variables/bier/common/success_response.json b/csit/variables/bier/common/success_response.json new file mode 100644 index 0000000000..1d8927a523 --- /dev/null +++ b/csit/variables/bier/common/success_response.json @@ -0,0 +1,7 @@ +{ + "output": { + "configure-result": { + "result": "SUCCESS" + } + } +} \ No newline at end of file -- 2.36.6