Coverage for netbox_interface_name_rules / choices.py: 100.00%
5 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-16 10:13 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-16 10:13 +0000
1# SPDX-License-Identifier: Apache-2.0
2# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com>
3"""Choice sets for InterfaceNameRule."""
5from utilities.choices import ChoiceSet
8class BreakoutModeChoices(ChoiceSet):
9 """The interface topology a breakout rule produces.
11 Values name the topology itself, never its relation to a release: a future NetBox model
12 gets its own value instead of relabelling the existing ones.
13 """
15 FLAT = "flat"
16 CHANNELIZED = "channelized"
18 CHOICES = [
19 (FLAT, "Flat", "gray"),
20 (CHANNELIZED, "Channelized", "blue"),
21 ]