original_docstring: Flag that an interface is connected, if it is
  
          This is a combination of 'we did our bit' and 'the other
          end connected'.  These can happen in either order; if
          we resync, we recheck our binding but the other end
          may have connected already.
  
          This both tells Nova the interface is ready and brings the
          interface up in VPP.
  
          There is nothing wrong (other than a bit of inefficiency)
          in sending this to Nova multiple times; the watching driver may
          see the key write multiple times and will act accordingly.
          
docstring: Flag that an interface is connected, if it is
  This is a combination of 'we did our bit' and 'the other
  end connected'.  These can happen in either order; if
  we resync, we recheck our binding but the other end
  may have connected already.
  
  This both tells Nova the interface is ready and brings the
  interface up in VPP.
  
  There is nothing wrong (other than a bit of inefficiency)
  in sending this to Nova multiple times; the watching driver may
  see the key write multiple times and will act accordingly.
docstring_tokens: Flag that an interface is connected if it is This is a combination of ' we did our bit ' and ' the other end connected ' . These can happen in either order ; if we resync we recheck our binding but the other end may have connected already . This both tells Nova the interface is ready and brings the interface up in VPP . There is nothing wrong ( other than a bit of inefficiency ) in sending this to Nova multiple times ; the watching driver may see the key write multiple times and will act accordingly .
code: def maybe_up(self, iface_idx):
          """Flag that an interface is connected, if it is
  
          This is a combination of 'we did our bit' and 'the other
          end connected'.  These can happen in either order; if
          we resync, we recheck our binding but the other end
          may have connected already.
  
          This both tells Nova the interface is ready and brings the
          interface up in VPP.
  
          There is nothing wrong (other than a bit of inefficiency)
          in sending this to Nova multiple times; the watching driver may
          see the key write multiple times and will act accordingly.
          """
  
          if iface_idx not in self.iface_state:
              # Binding hasn't completed
              return
  
          (id, bound_callback, props) = self.iface_state[iface_idx]
  
          # For trunk sub-ports, it's the parent vhostuser port that needs to
          # be linked up
          if 'parent_uuid' in props:
              port_id = props['parent_uuid']
          else:
              port_id = id
          if (props['bind_type'] == 'vhostuser' and
                  not self.vppf.vhostuser_linked_up(port_id)):
              # vhostuser connection that hasn't yet found a friend
              return
  
          if iface_idx in self.iface_awaiting_secgroups:
              return
  
          LOG.debug('marking index %s as ready', id)
  
          self.vppf.ifup(iface_idx)
          bound_callback(id, props)
code_tokens: def maybe_up ( self , iface_idx ) : if iface_idx not in self . iface_state : return ( id , bound_callback , props ) = self . iface_state [ iface_idx ] if 'parent_uuid' in props : port_id = props [ 'parent_uuid' ] else : port_id = id if ( props [ 'bind_type' ] == 'vhostuser' and not self . vppf . vhostuser_linked_up ( port_id ) ) : return if iface_idx in self . iface_awaiting_secgroups : return LOG . debug ( 'marking index %s as ready' , id ) self . vppf . ifup ( iface_idx ) bound_callback ( id , props )
short_docstring: Flag that an interface is connected, if it is
  This is a combination of 'we did our bit' and 'the other
  end connected'.
short_docstring_tokens: Flag that an interface is connected if it is This is a combination of ' we did our bit ' and ' the other end connected ' .
comment: """Flag that an interface is connected, if it is
  
          This is a combination of 'we did our bit' and 'the other
          end connected'.  These can happen in either order; if
          we resync, we recheck our binding but the other end
          may have connected already.
  
          This both tells Nova the interface is ready and brings the
          interface up in VPP.
  
          There is nothing wrong (other than a bit of inefficiency)
          in sending this to Nova multiple times; the watching driver may
          see the key write multiple times and will act accordingly.
          """$SEP$# Binding hasn't completed$SEP$# For trunk sub-ports, it's the parent vhostuser port that needs to$SEP$# be linked up$SEP$# vhostuser connection that hasn't yet found a friend