Beispiel #1
0
 def allow_macaddress(self, macs):
     '''Allow only listed MAC addresses LAN/WAN access'''
     fltr = xmlobjects.MacFilterCollection()
     fltr.setAllow()
     for mac in macs:
         fltr.addMac(xmlobjects.MacFilter(mac))
     data = fltr.buildXML()
     return self.api('security/mac-filter', data)
Beispiel #2
0
 def deny_macaddress(self, macs):
     """Block listed MAC addresses LAN/WAN access"""
     fltr = xmlobjects.MacFilterCollection()
     fltr.setDeny()
     for mac in macs:
         fltr.addMac(xmlobjects.MacFilter(mac))
     data = fltr.buildXML()
     return self.api('security/mac-filter', data)