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

noironetworks / opflex / 3839
78%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coveralls
DEFAULT BRANCH: master
Ran 12 Jul 2024 06:03PM UTC
Jobs 1
Files 284
Run time 1min
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

12 Jul 2024 05:08PM UTC coverage: 78.332% (-0.3%) from 78.633%
3839

push

travis-pro

mchalla
Changes for local network policies

- Implemented on top of Genie changes from Tom
- Add the following classes
    class[gbpe/LocalL24Classifier]
    class[gbp/LocalSecGroup]
    class[gbp/LocalSecGroupSubject]
    class[gbp/LocalSecGroupRule]
    class[gbp/LocalAllowDenyAction]
    class[gbp/LocalLogAction]
    class[gbp/LocalSubnets]
    class[gbp/LocalSubnet]
- These are enabled via opflex.enable-local-netpol config variable
  and read from .netpol files in the netpol-sources.filesystem
  thats configured in the opflex config (Default localnetpol is disabled)
- Each security group will contain a .netpol json file containing
  corresponding netpol
- The implemenation will read these files and update the MODB
  via the read that then triggers callbacks. These will be the old
  callbacks in the policymanager that have been extended to also
  process the Local network policies.
- Add new classtype LOCAL_POLICY to differentiate between POLICY that
  is always assumed as remote and would trigger a resolveObj
- extend deserialize to support local ObjectInstances, currently it
  assumes its only called for remote ones.
- add LocalAllowDenyAction and LocalLogAction on
  startup since these MOs are shared across netpols
  and should never be deleted. This is added
  in common tenant and one is created at startup.
- Implement delete by saving the notifs during add. File based
  delete will not work without some state because the file
  notification happens after the file is deleted.

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

122 of 325 new or added lines in 14 files covered. (37.54%)

8 existing lines in 4 files now uncovered.

27273 of 34817 relevant lines covered (78.33%)

2604.79 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
agent-ovs/lib/include/opflexagent/FSNetpolSource.h
1
74.11
0.47% agent-ovs/lib/include/opflexagent/PolicyManager.h
1
64.32
0.0% libopflex/engine/GbpOpflexServer.cpp
6
69.95
-2.37% libopflex/ofcore/OFFramework.cpp
7
91.45
-1.53% agent-ovs/lib/FSEndpointSource.cpp
19
25.89
-0.58% agent-ovs/lib/Agent.cpp
27
91.74
-2.28% agent-ovs/lib/EndpointManager.cpp
28
77.66
-3.93% libopflex/engine/MOSerializer.cpp
49
0.0
agent-ovs/lib/FSNetpolSource.cpp
64
87.41
-2.25% agent-ovs/lib/PolicyManager.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.41
-2.25% agent-ovs/lib/PolicyManager.cpp
1
25.89
-0.58% agent-ovs/lib/Agent.cpp
3
76.82
-1.99% agent-ovs/ovs/InterfaceStatsManager.cpp
3
52.0
-1.09% libopflex/comms/CommunicationPeer.cpp
Jobs
ID Job ID Ran Files Coverage
1 3839.1 (TEST_SUITE=travis-build.sh) 12 Jul 2024 06:03PM UTC 284
78.33
Travis Job 3839.1
Source Files on build 3839
  • Tree
  • List 284
  • Changed 105
  • Source Changed 16
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #3839
  • 1cfb8166 on github
  • Prev Build on master (#3831)
  • Next Build on opflex-hpp-optimization (#3842)
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

© 2025 Coveralls, Inc