Skip to content

Commit 781f0b4

Browse files
author
Vijayendra Bhamidipati
committed
Bug CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description: 1. Added the PortProfile infrastructure: a. PortProfileVO : The VO class to represent a db record of the table port_profile. Each db record represents one port profile. b. PortProfileDao: The interface that declares search functions on the port_profile table. c. PortProfileDaoImpl: The class that defines the interfaces declared in PortProfileDao. d. PortProfileManagerImpl: The class that contains routines that will add or delete db records from the port_profile table. If you want to create/delete a portprofile, call functions from this class. e. Changes to create-schema.sql to create the port_profile table. 2. Cleaned up code: a. Removed a number of unused Dao and Manager objects in CiscoNexusVSMDeviceManagerImpl. b. Removed the ListCiscoNexusVSMNetworksCmd command. c. Removed a bunch of import statements in a few files.
1 parent 4ff2893 commit 781f0b4

12 files changed

Lines changed: 516 additions & 333 deletions

api/src/com/cloud/network/PortProfile.java

Lines changed: 0 additions & 90 deletions
This file was deleted.

server/src/com/cloud/api/commands/ListCiscoNexusVSMNetworksCmd.java

Lines changed: 0 additions & 103 deletions
This file was deleted.

server/src/com/cloud/configuration/DefaultComponentLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
import com.cloud.network.dao.ExternalLoadBalancerDeviceDaoImpl;
7575
import com.cloud.network.dao.CiscoNexusVSMDeviceDaoImpl;
7676
import com.cloud.dc.dao.ClusterVSMMapDaoImpl;
77-
// TODO - Import the Port Profile Device Dao as well.
77+
import com.cloud.network.dao.PortProfileDaoImpl;
7878
import com.cloud.network.dao.FirewallRulesCidrsDaoImpl;
7979
import com.cloud.network.dao.FirewallRulesDaoImpl;
8080
import com.cloud.network.dao.IPAddressDaoImpl;
@@ -324,7 +324,7 @@ protected void populateDaos() {
324324
addDao("NetScalerPodDao", NetScalerPodDaoImpl.class);
325325
addDao("CiscoNexusVSMDeviceDao", CiscoNexusVSMDeviceDaoImpl.class);
326326
addDao("ClusterVSMMapDao", ClusterVSMMapDaoImpl.class);
327-
// TODO - Also put in the Port Profile Device Dao here.
327+
addDao("PortProfileDao", PortProfileDaoImpl.class);
328328
addDao("PhysicalNetworkTrafficTypeDao", PhysicalNetworkTrafficTypeDaoImpl.class);
329329
addDao("NetworkServiceMapDao", NetworkServiceMapDaoImpl.class);
330330
addDao("StorageNetworkIpAddressDao", StorageNetworkIpAddressDaoImpl.class);

0 commit comments

Comments
 (0)