def get_network_interface_fields():
 fields = item_system.NETWORK_INTERFACE_FIELDS
 fields_ui = []
 for field in fields:
  field_ui = {'name': field[0], 'dname': field[0], 'value': '?', 'caption': field[3], 'editable': field[4], 'tooltip': field[5], 'choices': field[6], 'css_class': 'generic', 'html_element': 'generic'}
  if (not field_ui['editable']):
   continue
  field_ui['value'] = ''
  field_ui['value_raw'] = field_ui['value']
  name = field[0]
  field_ui['html_element'] = _get_field_html_element(name)
  fields_ui.append(field_ui)
 return fields_ui

def get_network_interface_fields ( ) : fields = item_system . NETWORK_INTERFACE_FIELDS fields_ui = [ ] for field in fields : field_ui = { 'name' : field [ 0 ] , 'dname' : field [ 0 ] , 'value' : '?' , 'caption' : field [ 3 ] , 'editable' : field [ 4 ] , 'tooltip' : field [ 5 ] , 'choices' : field [ 6 ] , 'css_class' : 'generic' , 'html_element' : 'generic' } if ( not field_ui [ 'editable' ] ) : continue field_ui [ 'value' ] = '' field_ui [ 'value_raw' ] = field_ui [ 'value' ] name = field [ 0 ] field_ui [ 'html_element' ] = _get_field_html_element ( name ) fields_ui . append ( field_ui ) return fields_ui
create network interface fields ui metadata based on network interface fields metadata @return list network interface fields ui metadata .