def list_nat_rules(module, driver, network_domain):
 try:
  return driver.ex_list_nat_rules(network_domain)
 except DimensionDataAPIException:
  e = get_exception()
  module.fail_json(msg=('Failed to list NAT rules: %s' % e.message))

def list_nat_rules ( module , driver , network_domain ) : try : return driver . ex_list_nat_rules ( network_domain ) except DimensionDataAPIException : e = get_exception ( ) module . fail_json ( msg = ( 'Failed to list NAT rules: %s' % e . message ) )
get list of nat rules for domain .