add sspanelv3 interface, read the 'method' row
This commit is contained in:
parent
51bd3fcea0
commit
c7864acc37
4 changed files with 20 additions and 8 deletions
|
@ -1,6 +1,12 @@
|
|||
from configloader import load_config, get_config
|
||||
|
||||
def getKeys():
|
||||
return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
|
||||
#return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable', 'plan' ] # append the column name 'plan'
|
||||
load_config()
|
||||
key_list = ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
|
||||
if get_config().API_INTERFACE == 'sspanelv3':
|
||||
key_list += ['method']
|
||||
return key_list
|
||||
#return key_list + ['plan'] # append the column name 'plan'
|
||||
|
||||
def isTurnOn(row):
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue