replace this function with below one  def  test add remove router interface with port id self  network  created router port body self client create port network id network  id add router interface to port created above resp  interface self client add router interface with port id created router  id port body  port id  self assertequal resp  status  self addcleanup self  remove router interface with port id  created router  id port body  port id  self assertin  subnet id interface keys self assertin  port id interface keys verify router id is equal to device id in port details resp  show port body self client show port interface  port id  self assertequal show port body  port device id router  id  return show port body