2024-04-30 16:47:55 +02:00
|
|
|
{ lib, config, ... }:
|
2024-12-13 14:37:43 +01:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
;
|
|
|
|
inherit (lib.types)
|
|
|
|
listOf
|
|
|
|
str
|
|
|
|
;
|
|
|
|
in
|
2024-04-30 16:47:55 +02:00
|
|
|
{
|
|
|
|
options = {
|
2024-09-03 23:04:30 +02:00
|
|
|
protocols.rstp = mkOption {
|
2024-12-13 14:37:43 +01:00
|
|
|
type = listOf str;
|
2024-09-03 23:04:30 +02:00
|
|
|
description = ''
|
|
|
|
List of interfaces on which Rapid Spanning Tree Protocol should be enabled.
|
|
|
|
'';
|
|
|
|
};
|
2024-04-30 16:47:55 +02:00
|
|
|
};
|
2024-12-13 16:03:36 +01:00
|
|
|
config.netconf.xml.protocols.rstp = {
|
|
|
|
"@operation" = "replace";
|
|
|
|
interface = map (name: { inherit name; }) config.protocols.rstp;
|
|
|
|
};
|
2024-04-30 16:47:55 +02:00
|
|
|
}
|