• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

noironetworks / opflex / 2429
79%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coveralls
DEFAULT BRANCH: master
Ran 10 Nov 2022 06:33AM UTC
Jobs 1
Files 276
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2429

push

travis-ci-com

Madhu Challa
Async Json Parser for Opflex and Ovs

Allow parsing partial json messages. Invokes comms callback on parse complete
and continues with the parse. Currently supports only one reader and writer
per comms object. On error the callback disconnects and reconnects with the
client there by preserving the sanity of the json stream.

Controlled via 2 env variables OPFLEX_USE_ASYNC_JSON for leaf <> opflex comms
and OVS_USE_ASYNC_JSON for ovsdb <> opflex comms. The usage will be
OPFLEX_USE_ASYNC_JSON= OVS_USE_ASYNC_JSON= <opflex command>, the same can
be provided via docker env variables when running under docker. If neither
env variable is present the code reverts to the old sync way of parsing that
would fail if the json comes in partial chunks.

The env variables can be set via config as
    "opflex": {
        "asyncjson" : { "enabled" : "true" }
    },
    "ovs": {
        "asyncjson" : { "enabled" : "true" }
    },

Signed-off-by: Madhu Challa <challa@gmail.com>

25350 of 31926 relevant lines covered (79.4%)

2629.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2429.1 (TEST_SUITE=travis-build.sh) 10 Nov 2022 06:33AM UTC 0
79.4
Travis Job 2429.1
Source Files on build 2429
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2429
  • da1bac03 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc