1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Add validvals to addons, to be used by iface/ifedit wrapper

Ticket: CM-8669
Reviewed By: Julien
Testing Done:

<DETAILED DESCRIPTION (REPLACE)>
This commit is contained in:
Daniel Walton
2016-05-31 13:12:21 -07:00
committed by Julien Fortin
parent 198ded6a35
commit c6370b563b
15 changed files with 140 additions and 32 deletions

View File

@@ -24,9 +24,11 @@ class vlan(moduleBase):
'attributes',
'attrs' : {
'vlan-raw-device' :
{'help' : 'vlan raw device'},
{'help' : 'vlan raw device',
'validvals' : ['<interface>' ,]},
'vlan-id' :
{'help' : 'vlan id'}}}
{'help' : 'vlan id',
'validrange' : ['0', '4096']}}}
def __init__(self, *args, **kargs):