lib/sles4sap/ibsm.pm
NAME
IBS Mirror utilities lib
COPYRIGHT
Copyright 2025 SUSE LLC
SPDX-License-Identifier: FSFAP
AUTHORS
QE SAP <qe-sap@suse.de>
DESCRIPTION
Package with common methods allowing the SUT to interact with IBSm
Methods
ibsm_calculate_address_range
Calculate a main range that can be used in Azure for vnet or in AWS for vpc. Also calculate a secondary range within the main one for Azure subnet address ranges. The format is 10.ip2.ip3.0/21 and /24 respectively. ip2 and ip3 are calculated using the slot number as seed.
- slot - integer to be used as seed in calculating addresses
-
ibsm_network_peering_azure_create
ibsm_network_peering_azure_create(ibsm_rg => 'IBSmMyRg');
Create bidirectional network peering in Azure
- ibsm_rg - Azure resource group of the IBSm
-
- sut_rg - Azure resource group of the SUT
-
- name_prefix - prefix to be applied at the beginning of each peering name
-
ibsm_network_peering_azure_delete
Delete all the network peering between the two provided deployments.
- ibsm_rg - Azure resource group of the IBSm
-
- sut_rg - Azure resource group of the SUT
-
- sut_vnet - substring in the SUT vnet. Optional and only needed if only one specific VNET has to be considered. Most of the time it is get_current_job_id()
-
- query - valid jmespath https://jmespath.org/ (default: '[].name'), optional
-
- timeout - default is 5 mins
-