<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_gateway_router(self, router, body=None):
 """Adds an external network gateway to the specified router."""

        return self.put((self.router_path % router),
                        body={'router': {'external_gateway_info': body}})