def move_to_ACL2(): print 'Moving to ACL2' update_lib.update( ACL2, [leftFilter, egress, leftFilter, middleFilter, rightFilter, ingress]) sys.stdout.flush() send_signal()
def main(): update_lib.update(ACL1, [ingress, egress, leftFilter, middleFilter, rightFilter]) print "10 seconds to ACL2" update_lib.inst.post_callback(10, move_to_ACL2)
def move_to_ACL2(): print "Moving to ACL2" update_lib.update(ACL2, [leftFilter, egress, leftFilter, middleFilter, rightFilter, ingress]) sys.stdout.flush() send_signal()
def move_to_ACL2(): print "Moving to ACL2" update_lib.update(ACL2) send_signal()
def move_to_ACL1(): print "Moving to ACL1" update_lib.update(ACL1) update_lib.inst.post_callback(10, move_to_ACL2)