plumb through the BBS code to the vCPE observer
diff --git a/xos/observers/vcpe/steps/sync_vcpetenant.py b/xos/observers/vcpe/steps/sync_vcpetenant.py
index fc6dfee..7cb93ec 100644
--- a/xos/observers/vcpe/steps/sync_vcpetenant.py
+++ b/xos/observers/vcpe/steps/sync_vcpetenant.py
@@ -15,6 +15,8 @@
parentdir = os.path.join(os.path.dirname(__file__),"..")
sys.path.insert(0,parentdir)
+from broadbandshield import BBS
+
logger = Logger(level=logging.INFO)
class SyncVCPETenant(SyncStep):
@@ -107,6 +109,10 @@
fields.update(self.get_extra_attributes(o))
run_template_ssh(self.template_name, fields)
+ if o.url_filter_enable:
+ bbs = BBS(o.bbs_account, "123")
+ bbs.sync(o.url_filter_level, o.users)
+
o.save()
def delete_record(self, m):