Browse Source

add demo code in switchrule.py

dev
BreakWa11 9 years ago
parent
commit
4894925cac
  1. 2
      switchrule.py

2
switchrule.py

@ -1,6 +1,8 @@
def getKeys():
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):
return True
#return row['plan'] == 'B' # then judge here

Loading…
Cancel
Save