def getKeys():
	return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]

def isTurnOn(row):
	return True


@@ -79,38 +79,192 @@
 ' %5D%0A
-%0Adef isTurnOn(row):%0A%09return Tru
+%09#return %5B'port', 'u', 'd', 'transfer_enable', 'passwd', 'enable', 'plan' %5D # append the column name 'plan'%0A%0Adef isTurnOn(row):%0A%09return True%0A%09#return row%5B'plan'%5D == 'B' # then judge her
 e%0A%0A

add demo code in switchrule.py