original_docstring: On a restart, find bound ports and clean up unwanted config
  
          Does the following:
          - fixes uplinks
          - identifies the ports we bound previously - they may need
            removing or updating
  
          Ports intended to be bound will have .bind() called later
          in the resync, which will correcly populate VPPForwarder
          structures and fix bindings whose type has changed; ports
          that are no longer needed will be unbound.
  
          Returns a set of bound ports
          
docstring: On a restart, find bound ports and clean up unwanted config
  Does the following:
  fixes uplinks
  identifies the ports we bound previously - they may need
  removing or updating
  
  Ports intended to be bound will have .bind() called later
  in the resync, which will correcly populate VPPForwarder
  structures and fix bindings whose type has changed; ports
  that are no longer needed will be unbound.
  
  Returns a set of bound ports
docstring_tokens: On a restart find bound ports and clean up unwanted config Does the following : fixes uplinks identifies the ports we bound previously - they may need removing or updating Ports intended to be bound will have . bind () called later in the resync which will correcly populate VPPForwarder structures and fix bindings whose type has changed ; ports that are no longer needed will be unbound . Returns a set of bound ports
code: def vpp_restart_prepare(self):
          """On a restart, find bound ports and clean up unwanted config
  
          Does the following:
          - fixes uplinks
          - identifies the ports we bound previously - they may need
            removing or updating
  
          Ports intended to be bound will have .bind() called later
          in the resync, which will correcly populate VPPForwarder
          structures and fix bindings whose type has changed; ports
          that are no longer needed will be unbound.
  
          Returns a set of bound ports
          """
  
          LOG.debug('Repairing physnets in VPP')
          self.vppf.fix_physnets(self.physnets)
          LOG.debug('VPP has been cleaned of stale physnets')
  
          return self.vppf.find_bound_ports()
code_tokens: def vpp_restart_prepare ( self ) : LOG . debug ( 'Repairing physnets in VPP' ) self . vppf . fix_physnets ( self . physnets ) LOG . debug ( 'VPP has been cleaned of stale physnets' ) return self . vppf . find_bound_ports ( )
short_docstring: On a restart, find bound ports and clean up unwanted config
  Does the following:
   fixes uplinks
   identifies the ports we bound previously - they may need
  removing or updating
short_docstring_tokens: On a restart find bound ports and clean up unwanted config Does the following : fixes uplinks identifies the ports we bound previously - they may need removing or updating
comment: """On a restart, find bound ports and clean up unwanted config
  
          Does the following:
          - fixes uplinks
          - identifies the ports we bound previously - they may need
            removing or updating
  
          Ports intended to be bound will have .bind() called later
          in the resync, which will correcly populate VPPForwarder
          structures and fix bindings whose type has changed; ports
          that are no longer needed will be unbound.
  
          Returns a set of bound ports
          """