def network_entry(is_metal, interface, bridge=None, net_type=None, net_mtu=None):
 if is_metal:
  _network = dict()
 else:
  _network = {'interface': interface}
 if bridge:
  _network['bridge'] = bridge
 if net_type:
  _network['type'] = net_type
 if net_mtu:
  _network['mtu'] = net_mtu
 return _network

def network_entry ( is_metal , interface , bridge = None , net_type = None , net_mtu = None ) : if is_metal : _network = dict ( ) else : _network = { 'interface' : interface } if bridge : _network [ 'bridge' ] = bridge if net_type : _network [ 'type' ] = net_type if net_mtu : _network [ 'mtu' ] = net_mtu return _network
return a network entry for a container .