Giter Club home page Giter Club logo

black-box-bmv2's People

Contributors

committhis avatar

Watchers

 avatar  avatar

black-box-bmv2's Issues

Better Cleanup on Exception

If exceptions are thrown in some cases, it will bring down the entire test suite, without properly cleaning up. Consequently, the following may not be removed:

  • Container network namespace link;
  • Virtual ethernet pairs
  • Docker container

Context Manager for BMv2 Runner

There is a lot of set up and tear down to be done with a complete example. The most significant of these is the SimpleSwitchRunner. If we used a context manager, we could (hopefully) gracefully rollback everything that was set up.

For simplicity's sake, the code could look like:

pkt = Ether(src=get_if_hwaddr('h1eth0'), dst='ff:ff:ff:ff:ff:ff')/IP(
        src='10.0.0.1',
        dst='255.255.255.255')/ICMP()

context = TestContext()

with make_switch(config, name, network, port) as switch:
    result1 = context.expect('h2eth0', saw_packet_equals_sent(pkt))

# and so on....

However, we could also do something similar with the TestContext, and I'm not sure what the correct pattern would be with multiple nested inline context managers. There's also a lot of other moving machinery, so some thought would want to be had here.

Intercept Stream Generator to Provide Only Digest Messages

Possible QOL change. Rather than have a user filter gRPC messages from the switch, provide an interface that only returns digest messages. However would need to be considered against a users need to accept other messages, such as arbitration updates etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.