original_docstring: Check if the external subinterface can be deleted.
  
          It can be deleted if it still exists and has no more
          addresses.
          
docstring: Check if the external subinterface can be deleted.
  It can be deleted if it still exists and has no more
  addresses.
docstring_tokens: Check if the external subinterface can be deleted . It can be deleted if it still exists and has no more addresses .
code: def _delete_external_subinterface(self, floatingip_dict):
          """Check if the external subinterface can be deleted.
  
          It can be deleted if it still exists and has no more
          addresses.
          """
  
          external_physnet = floatingip_dict['external_physnet']
          external_net_type = floatingip_dict['external_net_type']
          external_segmentation_id = floatingip_dict['external_segmentation_id']
          external_network_data = self.net_driver.get_network(
              external_physnet, external_net_type, external_segmentation_id)
          if external_network_data:
              physnet_ip_addrs = self.vpp.get_interface_ip_addresses(
                  external_network_data['if_uplink_idx'])
              if not physnet_ip_addrs:
                  self.net_driver.delete_network(
                      external_physnet, external_net_type,
                      external_segmentation_id)
code_tokens: def _delete_external_subinterface ( self , floatingip_dict ) : external_physnet = floatingip_dict [ 'external_physnet' ] external_net_type = floatingip_dict [ 'external_net_type' ] external_segmentation_id = floatingip_dict [ 'external_segmentation_id' ] external_network_data = self . net_driver . get_network ( external_physnet , external_net_type , external_segmentation_id ) if external_network_data : physnet_ip_addrs = self . vpp . get_interface_ip_addresses ( external_network_data [ 'if_uplink_idx' ] ) if not physnet_ip_addrs : self . net_driver . delete_network ( external_physnet , external_net_type , external_segmentation_id )
short_docstring: Check if the external subinterface can be deleted.
short_docstring_tokens: Check if the external subinterface can be deleted .
comment: """Check if the external subinterface can be deleted.
  
          It can be deleted if it still exists and has no more
          addresses.
          """