in network-load-balancer-copy-utility/copy_network_load_balancer.py [0:0]
def passed_hardfailure_detector(elb_data):
"""
Checks for hard failures
"""
if debug:
logger.debug("Checking hard failure detector")
# 1. Verify the Classic Load Balancer does not have HTTP, HTTPS or SSL
# listeners
for listener in elb_data['LoadBalancerDescriptions'][0]['ListenerDescriptions']:
if listener['Listener']['Protocol'] in ['HTTP', 'HTTPS', 'SSL']:
logger.error(
"Error: HTTP, HTTPS and SSL listeners are not supported on Network Load Balancer.")
return False
# 2. Verify the Classic Load Balancer is not in EC2-Classic
if 'VPCId' not in elb_data['LoadBalancerDescriptions'][0]:
logger.error("Error: The Classic Load Balancer is in EC2-Classic instead of a VPC.\