2
2
3
3
4
4
class CommunityStatusChoices (ChoiceSet ):
5
+ key = "Community.status"
5
6
6
7
STATUS_ACTIVE = 'active'
7
8
STATUS_RESERVED = 'reserved'
8
9
STATUS_DEPRECATED = 'deprecated'
9
10
10
- CHOICES = (
11
+ CHOICES = [
11
12
(STATUS_ACTIVE , 'Active' , 'blue' ),
12
13
(STATUS_RESERVED , 'Reserved' , 'cyan' ),
13
14
(STATUS_DEPRECATED , 'Deprecated' , 'red' ),
14
- )
15
+ ]
15
16
16
17
17
18
class SessionStatusChoices (ChoiceSet ):
19
+ key = "Session.status"
18
20
19
21
STATUS_OFFLINE = 'offline'
20
22
STATUS_ACTIVE = 'active'
21
23
STATUS_PLANNED = 'planned'
22
24
STATUS_FAILED = 'failed'
23
25
24
- CHOICES = (
26
+ CHOICES = [
25
27
(STATUS_OFFLINE , 'Offline' , 'orange' ),
26
28
(STATUS_ACTIVE , 'Active' , 'green' ),
27
29
(STATUS_PLANNED , 'Planned' , 'cyan' ),
28
30
(STATUS_FAILED , 'Failed' , 'red' ),
29
- )
31
+ ]
30
32
31
33
32
34
class ActionChoices (ChoiceSet ):
35
+ key = "Action.status"
33
36
34
37
CHOICES = [
35
38
('permit' , 'Permit' , 'green' ),
@@ -38,6 +41,8 @@ class ActionChoices(ChoiceSet):
38
41
39
42
40
43
class AFISAFIChoices (ChoiceSet ):
44
+ key = "AFISAFI.options"
45
+
41
46
AFISAFI_IPV4_UNICAST = 'ipv4-unicast'
42
47
AFISAFI_IPV4_MULTICAST = 'ipv4-multicast'
43
48
AFISAFI_IPV4_FLOWSPEC = 'ipv4-flowspec'
@@ -57,7 +62,7 @@ class AFISAFIChoices(ChoiceSet):
57
62
AFISAFI_VPNV6_MULTICAST = 'vpnv6-multicast'
58
63
AFISAFI_VPNV6_FLOWSPEC = 'vpnv6-flowspec'
59
64
60
- CHOICES = (
65
+ CHOICES = [
61
66
(AFISAFI_IPV4_UNICAST , 'IPv4 Unicast' ),
62
67
(AFISAFI_IPV4_MULTICAST , 'IPv4 Multicast' ),
63
68
(AFISAFI_IPV4_FLOWSPEC , 'IPv4 Flowspec' ),
@@ -71,7 +76,7 @@ class AFISAFIChoices(ChoiceSet):
71
76
(AFISAFI_VPNV6_UNICAST , 'VPNv6 Unicast' ),
72
77
(AFISAFI_VPNV6_MULTICAST , 'VPNv6 Multicast' ),
73
78
(AFISAFI_VPNV6_FLOWSPEC , 'VPNv6 Flowspec' )
74
- )
79
+ ]
75
80
76
81
77
82
class IPAddressFamilyChoices (ChoiceSet ):
0 commit comments