Coverage for /home/runner/work/netbox-InterfaceNameRules-plugin/netbox-InterfaceNameRules-plugin/netbox-InterfaceNameRules-plugin/netbox_interface_name_rules/choices.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-22 21:16 +0000

1# SPDX-License-Identifier: Apache-2.0 

2# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com> 

3"""Choice sets for InterfaceNameRule.""" 

4 

5from utilities.choices import ChoiceSet 

6 

7 

8class BreakoutModeChoices(ChoiceSet): 

9 """The interface topology a breakout rule produces. 

10 

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 """ 

14 

15 FLAT = "flat" 

16 CHANNELIZED = "channelized" 

17 

18 CHOICES = [ 

19 (FLAT, "Flat", "gray"), 

20 (CHANNELIZED, "Channelized", "blue"), 

21 ]