code: def deactivate(self):
          
          if lib.EnvDeactivateRouter(self._env, self._name.encode()) == 0:
              raise RuntimeError("Unable to deactivate router %s" % self._name)
docs: Deactivate the Router.