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

hyperglass-community / hyperglass / 45370928839
89%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 10:04AM UTC
Jobs 2
Files 485
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

24 Nov 2026 10:02AM UTC coverage: 89.198% (+0.09%) from 89.11%
45370928839

push

github

web-flow
fix(config): reject custom directives with built-in ids and apply the IP class policy to every IP target (#604)

* fix(config): reject a custom directive with a built-in directive id

A custom directive in directives.yaml whose id is a built-in id replaced
the built-in when the two sets were merged by id. The replacement is not
a built-in, so every device that relies on built-ins lost that query
type, and nothing was logged. No device could select the custom
directive either, because devices ignore directive ids that start with
`__`.

init_user_config() now refuses such a configuration before anything is
cached, with a ConfigError that names each conflicting directive and
points to a new id that doesn't start with `__` plus builtins: false or
a list of built-ins. The onboarding CLI, which merges the same two sets,
applies the same check.

Closes #516

* fix(directives): apply the IP rule class policy to IP targets other rules accept

The allow_* options on IP rules were checked only by the IP rule that
contains the target. A target outside every IP rule, such as ::1,
169.254.1.1 or fe80::1%eth0, reached a later pattern rule or rule
without validation, which accepted it whatever its class. A pattern rule
placed before the IP rules accepted such targets the same way.

In a directive with IP rules, an IP address or prefix accepted by a
non-IP rule now gets the IP rule defaults: zoned, loopback, unspecified,
link-local and reserved targets are refused. An IP rule with the
matching option still accepts them. Directives without IP rules, and the
built-in directives, are unchanged. The class policy moves to module
functions so the directive can apply it without a rule.

Closes #495

* docs(changelog): drop a stray period from the #330 entry

1230 of 1505 branches covered (81.73%)

Branch coverage included in aggregate %.

172 of 176 new or added lines in 7 files covered. (97.73%)

22437 of 25028 relevant lines covered (89.65%)

34.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
94.88
1.42% hyperglass/models/directive.py
1
99.64
-0.36% hyperglass/cli/tests/test_onboard.py
Jobs
ID Job ID Ran Files Coverage
1 backend - 45370928839.1 24 Nov 2026 10:06AM UTC 341
89.89
GitHub Action Run
2 frontend - 45370928839.2 24 Nov 2026 10:04AM UTC 144
86.03
GitHub Action Run
Source Files on build 45370928839
  • Tree
  • List 485
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45370928839
  • f345e88d on github
  • Prev Build on main (#45366448559)
  • Next Build on main (#45681794775)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc