Skip to content

Commit 7108ef8

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
[CSTACKEX-129] NFS3 Primary storage-pool is not failing even if NFS3 protocol is not enabled at the storage VM
1 parent a281277 commit 7108ef8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/model

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/model/Svm.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,35 @@ public Boolean getNfsEnabled() {
7777
return nfs == null ? false : nfs.getEnabled();
7878
}
7979

80+
public void setNfsEnabled(Boolean nfsEnabled) {
81+
if (this.nfs == null) {
82+
this.nfs = new ProtocolStatus();
83+
}
84+
this.nfs.setEnabled(nfsEnabled);
85+
}
86+
8087
public Boolean getIscsiEnabled() {
8188
return iscsi == null ? false : iscsi.getEnabled();
8289
}
8390

91+
public void setIscsiEnabled(Boolean iscsiEnabled) {
92+
if (this.iscsi == null) {
93+
this.iscsi = new ProtocolStatus();
94+
}
95+
this.iscsi.setEnabled(iscsiEnabled);
96+
}
97+
8498
public Boolean getFcpEnabled() {
8599
return fcp == null ? false : fcp.getEnabled();
86100
}
87101

102+
public void setFcpEnabled(Boolean fcpEnabled) {
103+
if (this.fcp == null) {
104+
this.fcp = new ProtocolStatus();
105+
}
106+
this.fcp.setEnabled(fcpEnabled);
107+
}
108+
88109
public List<Aggregate> getAggregates() {
89110
return aggregates;
90111
}

0 commit comments

Comments
 (0)