Skip to content
Snippets Groups Projects
  1. Mar 07, 2013
  2. Mar 01, 2013
  3. Dec 20, 2012
  4. Dec 03, 2012
  5. Dec 01, 2012
  6. Nov 27, 2012
  7. Nov 20, 2012
  8. Nov 15, 2012
  9. Nov 20, 2012
  10. Nov 19, 2012
  11. Nov 15, 2012
  12. Nov 19, 2012
  13. Nov 18, 2012
  14. Nov 17, 2012
  15. Nov 14, 2012
    • Brandon Heller's avatar
      test_hifi: Fix occasional test breakage · 03c3123b
      Brandon Heller authored
      Source of error: regex to parse ps output had a single space, rather
      than handling any amount of whitespace before the CPU percentage.  When
      that percentage would drop below 10.0, an space would be printed,
      confusing the regex.
      
      Fixed by handling arbitrary whitespace before the percentage.
      03c3123b
  16. Nov 16, 2012
  17. Nov 14, 2012
    • Brandon Heller's avatar
      test: Improve unit tests to verify basic functionality · 1f1d590c
      Brandon Heller authored
      Also a more complete ping test that parses all output to the CLI.
      
      These tests expand the hifi-specific ones to not just cover whether
      a topology can be created with options, but whether those options
      are properly implemented within some tolerance, like CPU limits,
      link bandwidth, delays, and even drops.
      1f1d590c
    • Brandon Heller's avatar
    • Brandon Heller's avatar
    • Brandon Heller's avatar
      examples/simpleperf: Warn in docstring about effects of link settings · d7768ab2
      Brandon Heller authored
      These include dropped pings and iperf hanging.
      d7768ab2
    • Brandon Heller's avatar
      Fix SSHD example by generalizing input intf args · bf208cde
      Brandon Heller authored
      A number of functions in node.py look like this:
         return self.intf( intf ).<other stuff>
      
      Previously, self.intf(...) in Node would expect a string name for an
      interface and return None if an object was passed in instead of a
      string name.
      
      Now, be more permissive and assume that objects passed in are for Intf
      objects.  This makes all such functions in node.py handle more flexible
      input args, either name or actual Intf object.
      
      An alternative and equally valid approach would be to raise an Exception
      whenever a non-string, non-falsy value was passed in to Node.intf(), and
      to modify the code in at least one place - examples/sshd.py - to pass
      the interface name, rather than the interface object.
      
      Also fix input args for examples/scratchnetuser.py - the interface name
      was being passed in as the prefix len, which makes no sense.
      bf208cde
    • Brandon Heller's avatar
      examples/baresshd: ensure root permissions · 12fea0f6
      Brandon Heller authored
      Prevent idiots like me from getting confused by non-obvious 'broken pipe'
      errors when they forget to put 'sudo' in front  :-)
      12fea0f6
    • Brandon Heller's avatar
      small refactor: put function to ensure root in util · bcfb3009
      Brandon Heller authored
      Two benefits:
      - One place to change if in the future, a more granular method of
        root access is used (like the BigSwitch patch).
      - Makes this reusable by stuff like examples/baresshd.py that use
        the low-level Mininet API.
      bcfb3009
    • Brandon Heller's avatar
      Fix 'cgroups not mounted' error in U12.10 · 8a1264e2
      Brandon Heller authored
      'mount' shows something slightly different in Ubuntu 12.10:
      
      cgroup on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755)
      
      Note the lack of a plural on first word cgroup, which has changed.
      
      Still mounted at /sys/fs/cgroup, so check for both possibilities
      when instantiated CPU-limited hosts.
      8a1264e2
Loading