Jan Gelety | 95c87b5 | 2017-02-27 10:46:14 +0100 | [diff] [blame] | 1 | """ VRF Status codes """ |
2 | |||||
3 | from util import NumericConstant | ||||
4 | |||||
5 | |||||
6 | class VRFState(NumericConstant): | ||||
7 | """ VRF State """ | ||||
8 | not_configured = 0 | ||||
9 | configured = 1 | ||||
10 | reset = 2 | ||||
11 | |||||
12 | desc_dict = { | ||||
13 | not_configured: "VRF not configured", | ||||
14 | configured: "VRF configured", | ||||
15 | reset: "VRF reset", | ||||
16 | } | ||||
17 | |||||
18 | def __init__(self, value): | ||||
19 | NumericConstant.__init__(self, value) |