File tree Expand file tree Collapse file tree
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ public boolean connect() {
122122 logger .error ("SVM " + svmName + " is not in running state." );
123123 return false ;
124124 }
125- if (Objects . equals ( storage .getProtocol (), OntapStorageConstants .NFS ) && !svm .getNfsEnabled ()) {
125+ if (storage .getProtocol (). name (). equalsIgnoreCase ( OntapStorageConstants .NFS3 ) && !svm .getNfsEnabled ()) {
126126 logger .error ("NFS protocol is not enabled on SVM " + svmName );
127127 return false ;
128- } else if (Objects . equals ( storage .getProtocol (), OntapStorageConstants .ISCSI ) && !svm .getIscsiEnabled ()) {
128+ } else if (storage .getProtocol (). name (). equalsIgnoreCase ( OntapStorageConstants .ISCSI ) && !svm .getIscsiEnabled ()) {
129129 logger .error ("iSCSI protocol is not enabled on SVM " + svmName );
130130 return false ;
131131 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class OntapStorageConstants {
2828 public static final int NFS3_PORT = 2049 ;
2929 public static final int ISCSI_PORT = 3260 ;
3030
31- public static final String NFS = "nfs " ;
31+ public static final String NFS3 = "nfs3 " ;
3232 public static final String ISCSI = "iscsi" ;
3333 public static final String SIZE = "size" ;
3434 public static final String PROTOCOL = "protocol" ;
You can’t perform that action at this time.
0 commit comments