This repository has been archived on 2025-02-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Netconf-Module/junos/protocols.nix

24 lines
459 B
Nix

{ lib, config, ... }:
let
inherit (lib)
mkOption
;
inherit (lib.types)
listOf
str
;
in
{
options = {
protocols.rstp = mkOption {
type = listOf str;
description = ''
List of interfaces on which Rapid Spanning Tree Protocol should be enabled.
'';
};
};
config.netconf.xml.protocols.rstp = {
"@operation" = "replace";
interface = map (name: { inherit name; }) config.protocols.rstp;
};
}