Beispiel #1
0
    def _delete_nxos_db(self, vlan_id, device_id, host_id):
        """Delete the nexus database entry.

        Called during delete precommit port event.
        """
        try:
            row = nxos_db.get_nexusvm_binding(vlan_id, device_id)
            nxos_db.remove_nexusport_binding(row.port_id, row.vlan_id,
                                             row.switch_ip, row.instance_id)
        except excep.NexusPortBindingNotFound:
            return
    def _delete_nxos_db(self, vlan_id, device_id, host_id):
        """Delete the nexus database entry.

        Called during delete precommit port event.
        """
        try:
            row = nxos_db.get_nexusvm_binding(vlan_id, device_id)
            nxos_db.remove_nexusport_binding(row.port_id, row.vlan_id,
                                             row.switch_ip, row.instance_id)
        except excep.NexusPortBindingNotFound:
            return
 def _remove_binding_from_db(self, npb):
     """Removes a port binding from the Nexus database."""
     return nexus_db_v2.remove_nexusport_binding(npb.port, npb.vlan,
                                                 npb.switch, npb.instance)
 def _remove_binding_from_db(self, npb):
     """Removes a port binding from the Nexus database."""
     return nexus_db_v2.remove_nexusport_binding(
         npb.port, npb.vlan, npb.switch, npb.instance)