add demo code in switchrule.py

This commit is contained in:
BreakWa11 2015-11-27 16:47:08 +08:00
parent 409f3b053d
commit 4894925cac

View file

@ -1,6 +1,8 @@
def getKeys(): def getKeys():
return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ] return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
#return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable', 'plan' ] # append the column name 'plan'
def isTurnOn(row): def isTurnOn(row):
return True return True
#return row['plan'] == 'B' # then judge here