소스 검색

Merge "Remove sleep command when retrieving OVS dp" into stable/stein

tags/14.1.0
Zuul Gerrit Code Review 4 달 전
부모
커밋
06cf8966b9
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -3
      neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py

+ 2
- 3
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py 파일 보기

@@ -70,14 +70,13 @@ class OpenFlowSwitchMixin(object):
dp = ofctl_api.get_datapath(self._app, dpid_int)
if dp is not None:
break
# The switch has not established a connection to us.
# Wait for a little.
# The switch has not established a connection to us; retry again
# until timeout.
if timeutils.now() > start_time + timeout_sec:
m = _("Switch connection timeout")
LOG.error(m)
# NOTE(yamamoto): use RuntimeError for compat with ovs_lib
raise RuntimeError(m)
eventlet.sleep(1)
return dp

def _send_msg(self, msg, reply_cls=None, reply_multi=False,


불러오는 중...
취소
저장