main.py 299 B

123456789101112131415
  1. import logging
  2. # from hacking.Hacking import Hacking
  3. from elife.OfpayHelper import OfpayHelper
  4. class Main:
  5. def __init__(self):
  6. self.num = 0;
  7. def request(self, flow):
  8. self.num = self.num + 1;
  9. logging.info("flows[%d]" % self.num);
  10. addons = [Main(), OfpayHelper()]