code: def update_port(self, port, name, admin_state_up=True):
          '''
          Updates a port
          '''
          port_id = self._find_port_id(port)
          body = {'name': name,
                  'admin_state_up': admin_state_up}
          return self.network_conn.update_port(port=port_id,
                                               body={'port': body}f update_port(self, port, name, admin_state_up=True):
          '''
          Updates a port
          '''
          port_id = self._find_port_id(port)
          body = {'name': name,
                  'admin_state_up': admin_state_up}
          return self.network_conn.update_port(port=port_id,
                                               body={'port': body})
docs: Updates a port