def login(self):
if not self.force_login_v2:<EOL><INDENT>v1_result = self.login_v1()<EOL>if v1_result:<EOL><INDENT>return v1_result<EOL><DEDENT><DEDENT>return self.login_v2()<EOL>
Login to the router.

Will be called automatically by other actions.