code: def create_router(self, name, tenant_id, subnet_lst):
          
          try:
              body = {'router': {'name': name, 'tenant_id': tenant_id,
                                 'admin_state_up': True}}
              router = self.neutronclient.create_router(body=body)
              rout_dict = router.get('router')
              rout_id = rout_dict.get('id')
          except Exception as exc:
              LOG.error("Failed to create router with name %(name)s"
                        " Exc %(exc)s", {'name': name, 'exc': str(exc)})
              return None
  
          ret = self.add_intf_router(rout_id, tenant_id, subnet_lst)
          if not ret:
              try:
                  ret = self.neutronclient.delete_router(rout_id)
              except Exception as exc:
                  LOG.error("Failed to delete router %(name)s, Exc %(exc)s",
                            {'name': name, 'exc': str(exc)})
              return None
          return rout_id
docs: Create a openstack router and add the interfaces.