original_docstring: Unbind all sub-ports and then unbind the parent port.
docstring: Unbind all sub-ports and then unbind the parent port.
docstring_tokens: Unbind all sub - ports and then unbind the parent port .
code: def removed(self, parent_port):
          """Unbind all sub-ports and then unbind the parent port."""
          LOG.debug('trunk watcher received unbound for parent port %s ',
                    parent_port)
          # First, unbind all subports
          self.data.bind_unbind_subports(parent_port, subports=[])
          # Then, unbind the parent port if it has no subports
          if not self.data.bound_subports[parent_port]:
              LOG.debug('Unbinding the parent port %s', parent_port)
              self.data.vppf.unbind_interface_on_host(parent_port)
code_tokens: def removed ( self , parent_port ) : LOG . debug ( 'trunk watcher received unbound for parent port %s ' , parent_port ) self . data . bind_unbind_subports ( parent_port , subports = [ ] ) if not self . data . bound_subports [ parent_port ] : LOG . debug ( 'Unbinding the parent port %s' , parent_port ) self . data . vppf . unbind_interface_on_host ( parent_port )
short_docstring: Unbind all sub-ports and then unbind the parent port.
short_docstring_tokens: Unbind all sub - ports and then unbind the parent port .
comment: """Unbind all sub-ports and then unbind the parent port."""$SEP$# First, unbind all subports$SEP$# Then, unbind the parent port if it has no subports