Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

Commit 2b319db

Browse files
committed
netbox/plugins: add assertion that routing and bgp cannot be enabled at the same time
1 parent 5651d82 commit 2b319db

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/netbox/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ in
151151
};
152152

153153
config = mkIf cfg.enable (mkMerge [
154+
{
155+
assertions = [
156+
{
157+
# see https://github.com/DanSheps/netbox-routing/issues/104
158+
assertion = !(cfg.plugin.bgp && cfg.plugin.routing);
159+
message = ''
160+
The plugins `netbox-bgp` and `netbox-routing` are incompatible.
161+
Please disable one of them via `secshell.netbox.plugin.routing` or `secshell.netbox.plugin.bgp`.
162+
'';
163+
}
164+
];
165+
}
154166
# base
155167
{
156168
sops.secrets."netbox/secretKey".owner = "netbox";

0 commit comments

Comments
 (0)