original_docstring: Try to bind subports awaiting their parent port to be bound.
  
          If the parent port
              - is bound
              - instance has connected to the other end of the vhostuser
              - security groups has been applied
              - is in admin UP state
          then:
              - bind the subports, and
              - set subport state to admin UP
          
docstring: Try to bind subports awaiting their parent port to be bound.
  If the parent port
  is bound
  instance has connected to the other end of the vhostuser
  security groups has been applied
  is in admin UP state
  then:
  bind the subports, and
  set subport state to admin UP
docstring_tokens: Try to bind subports awaiting their parent port to be bound . If the parent port is bound instance has connected to the other end of the vhostuser security groups has been applied is in admin UP state then : bind the subports and set subport state to admin UP
code: def reconsider_trunk_subports(self):
          """Try to bind subports awaiting their parent port to be bound.
  
          If the parent port
              - is bound
              - instance has connected to the other end of the vhostuser
              - security groups has been applied
              - is in admin UP state
          then:
              - bind the subports, and
              - set subport state to admin UP
          """
  
          # Get the list of *currently* awaiting subports
          # (allows us to change and clear up the dict as we go through them)
          awaiting_subports = list(self.subports_awaiting_parents.items())
  
          for parent_port, subports in awaiting_subports:
              LOG.debug('reconsidering bind for trunk subports %s, parent %s',
                        subports, parent_port)
              props = self.vppf.interfaces.get(parent_port, None)
              # Make sure parent port is really ready
              if (props and props['iface_idx'] in self.iface_state and
                      self.vppf.vhostuser_linked_up(parent_port) and
                      props['iface_idx'] not in self.iface_awaiting_secgroups):
                  LOG.debug("Parent trunk port vhostuser ifidx %s is ready",
                            props['iface_idx'])
                  self.bind_unbind_subports(parent_port, subports)
                  self.subports_awaiting_parents.pop(parent_port)
              else:
                  LOG.debug("Parent trunk port is not ready")
code_tokens: def reconsider_trunk_subports ( self ) : awaiting_subports = list ( self . subports_awaiting_parents . items ( ) ) for parent_port , subports in awaiting_subports : LOG . debug ( 'reconsidering bind for trunk subports %s, parent %s' , subports , parent_port ) props = self . vppf . interfaces . get ( parent_port , None ) if ( props and props [ 'iface_idx' ] in self . iface_state and self . vppf . vhostuser_linked_up ( parent_port ) and props [ 'iface_idx' ] not in self . iface_awaiting_secgroups ) : LOG . debug ( "Parent trunk port vhostuser ifidx %s is ready" , props [ 'iface_idx' ] ) self . bind_unbind_subports ( parent_port , subports ) self . subports_awaiting_parents . pop ( parent_port ) else : LOG . debug ( "Parent trunk port is not ready" )
short_docstring: Try to bind subports awaiting their parent port to be bound.
short_docstring_tokens: Try to bind subports awaiting their parent port to be bound .
comment: """Try to bind subports awaiting their parent port to be bound.
  
          If the parent port
              - is bound
              - instance has connected to the other end of the vhostuser
              - security groups has been applied
              - is in admin UP state
          then:
              - bind the subports, and
              - set subport state to admin UP
          """$SEP$# Get the list of *currently* awaiting subports$SEP$# (allows us to change and clear up the dict as we go through them)$SEP$# Make sure parent port is really ready