Skip to content

Commit a096a56

Browse files
authored
Merge pull request #1170 from kernelkit/ospf-show-neighbor-fix
OSPF: skip interfaces without OSPF enabled
2 parents 3720e09 + 0b81e46 commit a096a56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ All notable changes to the project are documented in this file.
2929
- Fix #1155: `show ospf` commands regression
3030
- Fix #1150: `show-legacy` wrapper permissions
3131
- Fix #1161: error in log during boot about unsupported command
32+
- Fix #1169: Expected neighbors not shown in sysrepocfg
3233
- Fixes for unicode translation in log and pager outputs as well as `syslogd`
3334

3435
[BPI-R3]: https://wiki.banana-pi.org/Banana_Pi_BPI-R3

src/statd/python/ospf_status/ospf_status.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ def main():
4040
for ifname, iface in interfaces["interfaces"].items():
4141
iface["name"] = ifname
4242
iface["neighbors"] = []
43+
44+
# Skip interfaces that don't have OSPF enabled or area configured
45+
if not iface.get("ospfEnabled", False) or not iface.get("area"):
46+
continue
47+
4348
for area_id in ospf["areas"]:
4449
area_type=""
4550

0 commit comments

Comments
 (0)