def __init__(self, host, client_factory, vppf, physnets):
self.host = host
self.client_factory = client_factory
self.vppf = vppf
self.physnets = physnets
self.pool = eventlet.GreenPool()
self.secgroup_enabled = cfg.CONF.SECURITYGROUP.enable_security_group
# These data structures are used as readiness indicators.
# A port is only in here only if the attachment part of binding
# has completed.
# key: if index in VPP; value: (ID, bound-callback, vpp-prop-dict)
self.iface_state = {}
# Members of this are ports requiring security groups with unsatisfied
# requirements.
self.iface_awaiting_secgroups = {}
# We also need to know if the vhostuser interface has seen a socket
# connection: this tells us there's a state change, and there is
# a state detection function on self.vppf.
self.vppf.vhost_ready_callback = self._vhost_ready
评论列表
文章目录