parse_drs_info module
- parse_drs_info.get_drs_details(df, drs_client, ec2_client)
Returns all info related to DRS source servers
- Parameters:
df (list) – Source server list
drs_client (boto_client) – DRS boto client
ec2_client (boto_client) – EC2 boto client
- Returns:
ss_list, ss_total_info, volumes, security_rules
- Return type:
list, list, list, list
- parse_drs_info.init_aws_clients(region)
Initializes EC2 boto clients
- Parameters:
region (string) – AWS Region
- Returns:
DRS client, EC2 client
- Return type:
boto_client, boto_client
- parse_drs_info.logActions(level, short_desc, long_desc)
Formats and prints logs
- Parameters:
level (string) – Log level (INF,ERR)
short_desc (string) – Short log message
long_desc (string) – Long log message
- parse_drs_info.read_excel(file_path)
Reads the source server list from the XLS doc and returns a list
- Parameters:
file_path (string) – path to the XLS doc
- Returns:
Source server list
- Return type:
list
- parse_drs_info.update_workbook(source_server_list, drs_details, drs_vol_details, drs_sg_details, file_path, additional_exec)
Updates the XLS doc with DRS related info
- Parameters:
source_server_list (list) – Source server list
drs_details (list) – DRS data
drs_vol_details (list) – Volume data
drs_sg_details (list) – Security Group data
file_path (string) – Path to the XLS doc
additional_exec (bool) – If it is the initial DRS parsing step