1. 25 Nov, 2018 1 commit
  2. 20 Nov, 2018 1 commit
  3. 17 Aug, 2017 1 commit
    • David Hancock's avatar
      Refactor · 7ba6a5c9
      David Hancock authored
      Tested: create_device, list_devices
      
      Note, use bash scripts in parent ('controller' and 'client'),
      which invoke python -m and make relative imports work.  Use
      command line parameters as normal, '--help' works.
      7ba6a5c9
  4. 15 Aug, 2017 1 commit
    • David Hancock's avatar
      Implement RuleTranslationGuide · 260d2dfc
      David Hancock authored
      Now, rule translation is held in memory associated with each
      virtual device.  The old way parsed the whole .json file
      every time just to filter and return the command templates relevant
      to a (table, action) pair.
      260d2dfc
  5. 13 Aug, 2017 1 commit
    • David Hancock's avatar
      Reworked P4Command abstraction supporting the three command types · 3221010e
      David Hancock authored
      Previous abstraction had a built in assumption that it was always
      a table_add, neglecting differences with table_modify and
      table_delete.
      
      A bit of a hack but now a P4Command simply has an 'attributes'
      attribute, a dictionary with the attribute name as the key,
      and strings (table, action), lists (match params, action params),
      or ints (handles) as values as appropriate.
      
      The 'command_type' attribute remains to differentiate handling.
      3221010e
  6. 10 Aug, 2017 1 commit