mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Merge pull request #1170 from kernelkit/ospf-show-neighbor-fix
OSPF: skip interfaces without OSPF enabled
This commit is contained in:
@@ -29,6 +29,7 @@ All notable changes to the project are documented in this file.
|
||||
- Fix #1155: `show ospf` commands regression
|
||||
- Fix #1150: `show-legacy` wrapper permissions
|
||||
- Fix #1161: error in log during boot about unsupported command
|
||||
- Fix #1169: Expected neighbors not shown in sysrepocfg
|
||||
- Fixes for unicode translation in log and pager outputs as well as `syslogd`
|
||||
|
||||
[BPI-R3]: https://wiki.banana-pi.org/Banana_Pi_BPI-R3
|
||||
|
||||
@@ -40,6 +40,11 @@ def main():
|
||||
for ifname, iface in interfaces["interfaces"].items():
|
||||
iface["name"] = ifname
|
||||
iface["neighbors"] = []
|
||||
|
||||
# Skip interfaces that don't have OSPF enabled or area configured
|
||||
if not iface.get("ospfEnabled", False) or not iface.get("area"):
|
||||
continue
|
||||
|
||||
for area_id in ospf["areas"]:
|
||||
area_type=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user