Skip to content
Snippets Groups Projects
  1. May 14, 2018
    • David Hancock's avatar
      Confirm conditions for running tests / no unwanted output · 49f91cf0
      David Hancock authored
      Unwanted output noted in previous commit was result of forgetting
      that the hp4controller modules had been installed to /usr/local/...
      via setuptools (setup.py in hp4-ctrl), so the modules being
      accessed were not the ones I was modifying in my home directory.
      
      To more easily modify these files and run tests, instead of
      using setuptools we modify PYTHONPATH in .profile in the home
      directory.  We must also modify sudoers to preserve the
      environment when running commands via sudo, because the
      test requires the use of sudo, because of mininet.
      
      We should add basic instructions to this effect.
      49f91cf0
  2. May 11, 2018
  3. May 10, 2018
    • David Hancock's avatar
      Complete initial HP4 test framework functionality · 1b1063ca
      David Hancock authored
      Demo: HP4 running test_hub; two tests:
      - h1 ping h2 (expected: success)
      - h1 ping h3 (expected: fail)
      Both tests return the expected results.
      
      To run: sudo ./test.py.
      
      Additional tests may be added with 1-3 files per need:
      - <proj>.p4
      - [<proj>.commands] -- bmv2 runtime table management commands
      - [<proj>.py] -- test cases + mininet script
      
      If the <proj>.py file is not present, the framework uses
      test_mininet.py with the two tests described above (h1 ping h2,
      h1 ping h3).
      1b1063ca
  4. May 07, 2018
  5. Apr 12, 2018
  6. Apr 11, 2018
  7. Dec 04, 2017
    • David Hancock's avatar
      Change modify_field type to remove conflict w/ action handling · 7466a7b8
      David Hancock authored
      Action handling now involves checking whether
      meta_primitive_state.primitive[+Y+] == 0 between primitives,
      which indicates no further primitives remain, but that value
      was used to indicate a modify_field primitive, so the value
      for modify_field has been changed.
      7466a7b8
  8. Dec 01, 2017
  9. Nov 20, 2017
  10. Nov 07, 2017
  11. Nov 05, 2017
    • David Hancock's avatar
      Fix next_table field width to handle MATCHLESS value (99) · 48bacb68
      David Hancock authored
      Also, comments added to help identify conditionals, supporting
      debugging via the event logger.
      
      The next_table field was 4 bits, but init_program_state was
      assigning a value of '99' corresponding to matchless table type.
      When a modify_field tries to assign a value larger than the width
      of the target, bmv2 silently fails.
      
      Over in hp4-ctrl, t06 now works in its most essential test -
      a chain is created with simple_router -> firewall, and the
      router routes, and the firewall blocks/doesn't block correctly!
      48bacb68
  12. Nov 03, 2017
  13. Oct 31, 2017
  14. Oct 30, 2017
    • David Hancock's avatar
      Merge branch 'experimental' · 68b92ba6
      David Hancock authored
      Conflicts:
      	hp4/hp4commands.txt
      	hp4/p4src/includes/parser.p4
      	hp4/p4src/includes/setup.p4
      	hp4/template/includes/parser.p4t
      	hp4/template/includes/setup.p4t
      68b92ba6
    • David Hancock's avatar
      Clean house · 15f8f5a6
      David Hancock authored
      p4c-hp4 belongs to the hp4-ctrl repo.  Script for nano_msg client updated.
      Misc files deleted.
      15f8f5a6
  15. Oct 27, 2017
  16. Oct 26, 2017
  17. Oct 25, 2017
  18. Oct 24, 2017
  19. Oct 13, 2017
  20. Oct 12, 2017
  21. Oct 05, 2017
Loading