def show_interface(call=None, kwargs=None):
 global netconn
 if (not netconn):
  netconn = get_conn(NetworkManagementClient)
 if (kwargs is None):
  kwargs = {}
 if kwargs.get('group'):
  kwargs['resource_group'] = kwargs['group']
 if (kwargs.get('resource_group') is None):
  kwargs['resource_group'] = config.get_cloud_config_value('resource_group', {}, __opts__, search_global=True)
 iface_name = kwargs.get('iface_name', kwargs.get('name'))
 iface = netconn.network_interfaces.get(kwargs['resource_group'], iface_name)
 data = object_to_dict(iface)
 data['resource_group'] = kwargs['resource_group']
 data['ip_configurations'] = {}
 for ip_ in iface.ip_configurations:
  data['ip_configurations'][ip_.name] = make_safe(ip_)
  try:
   pubip = netconn.public_ip_addresses.get(kwargs['resource_group'], ip_.name)
   data['ip_configurations'][ip_.name]['public_ip_address']['ip_address'] = pubip.ip_address
  except Exception as exc:
   log.warning('There was a cloud error: {0}'.format(exc))
   log.warning('{0}'.format(type(exc)))
   continue
 return data

def show_interface ( call = None , kwargs = None ) : global netconn if ( not netconn ) : netconn = get_conn ( NetworkManagementClient ) if ( kwargs is None ) : kwargs = { } if kwargs . get ( 'group' ) : kwargs [ 'resource_group' ] = kwargs [ 'group' ] if ( kwargs . get ( 'resource_group' ) is None ) : kwargs [ 'resource_group' ] = config . get_cloud_config_value ( 'resource_group' , { } , __opts__ , search_global = True ) iface_name = kwargs . get ( 'iface_name' , kwargs . get ( 'name' ) ) iface = netconn . network_interfaces . get ( kwargs [ 'resource_group' ] , iface_name ) data = object_to_dict ( iface ) data [ 'resource_group' ] = kwargs [ 'resource_group' ] data [ 'ip_configurations' ] = { } for ip_ in iface . ip_configurations : data [ 'ip_configurations' ] [ ip_ . name ] = make_safe ( ip_ ) try : pubip = netconn . public_ip_addresses . get ( kwargs [ 'resource_group' ] , ip_ . name ) data [ 'ip_configurations' ] [ ip_ . name ] [ 'public_ip_address' ] [ 'ip_address' ] = pubip . ip_address except Exception as exc : log . warning ( 'There was a cloud error: {0}' . format ( exc ) ) log . warning ( '{0}' . format ( type ( exc ) ) ) continue return data
create a network interface .