def create_hostname_from_ip(mgmt_ip, country_code):
    """
    example country code: CH, UK
    creates the switch hostname based on the mgmt IP and the country code
    """
    temp_ip_split = mgmt_ip.split(".")
    hostname = f"SWI{country_code}{temp_ip_split[1].zfill(3)}{temp_ip_split[2].zfill(3)}{temp_ip_split[3].zfill(3)}"
    hostname = hostname.upper()
    return hostname