parameters: (self, stffile)
return_statement: return SUCCESS
docstring: Parses the stf file and creates a .pcap file with input packets.
              It also adds the expected output packets per interface to a global
              dictionary.
              After parsing the necessary information, it creates a control
              header for the runtime, which contains the extracted control
               plane commands
docstring_summary: Parses the stf file and creates a .pcap file with input packets.
              It also adds the expected output packets per interface to a global
              dictionary.
              After parsing the necessary information, it creates a control
              header for the runtime, which contains the extracted control
               plane commands
docstring_tokens: Parses the stf file and creates a . pcap file with input packets . It also adds the expected output packets per interface to a global dictionary . After parsing the necessary information it creates a control header for the runtime which contains the extracted control plane commands
function: def generate_model_inputs(self, stffile):
          # To override
          """ Parses the stf file and creates a .pcap file with input packets.
              It also adds the expected output packets per interface to a global
              dictionary.
              After parsing the necessary information, it creates a control
              header for the runtime, which contains the extracted control
               plane commands """
          with open(stffile) as raw_stf:
              input_pkts, cmds, self.expected = parse_stf_file(
                  raw_stf)
              result, err = create_table_file(cmds, self.tmpdir, "control.h")
              if result != SUCCESS:
                  return result
              result = self._write_pcap_files(input_pkts)
              if result != SUCCESS:
                  return result
          return SUCCESS
function_tokens: def generate_model_inputs ( self , stffile ) : # To override with open ( stffile ) as raw_stf : input_pkts , cmds , self . expected = parse_stf_file ( raw_stf ) result , err = create_table_file ( cmds , self . tmpdir , "control.h" ) if result != SUCCESS : return result result = self . _write_pcap_files ( input_pkts ) if result != SUCCESS : return result return SUCCESS