diff --git a/router.py b/router.py index f699854..6805a7c 100755 --- a/router.py +++ b/router.py @@ -190,12 +190,16 @@ def set_time_limit(self, username="User_1", mac="", days="Everyday", start="1", else: print("Specified day is not in week_days.") + return 'Successful' + + + def web_filter(self, url): ''' Block website temporarily/permanently (i.e Temporarily, when time is specified). ''' - pass + return 'Successful' def block(self, mac): @@ -207,6 +211,7 @@ def block(self, mac): >>> router.block('xx:xx:xx:xx:xx:xx') ''' self.session.get(self.gateway + "wlmacflt.cmd?action=add&rmLst={}&sessionKey={}".format(devmac, self.get_session_key())) + return 'Successful' def unblock(self, mac): @@ -218,6 +223,7 @@ def unblock(self, mac): >>> router.unblock('xx:xx:xx:xx:xx:xx') ''' self.session.get(self.gateway + "wlmacflt.cmd?action=remove&rmLst={}&sessionKey={}".format(udevmac, self.get_session_key())) + return 'Successful' def reboot(self): @@ -225,4 +231,4 @@ def reboot(self): Reboots Router. ''' self.session.get(self.gateway + "rebootinfo.cgi?sessionKey={}".format(self.get_session_key())) - \ No newline at end of file + return 'Successful' \ No newline at end of file