@@ -107,7 +107,7 @@ def createVLAN(self, vlanid, vlanname):
107
107
print "Created VLAN " + str (vlanid ) + ": " + vlanname
108
108
except UcsException as e :
109
109
print "VLAN " + str (vlanid ) + ": " + vlanname + \
110
- " already exists -- " + e .errorDescr
110
+ " already exists -- " + e .errorMsg
111
111
112
112
def removeVLAN (self , mo ):
113
113
#TODO: in the usual workflow, you're retrieving the VLAN objects
@@ -123,7 +123,7 @@ def removeVLAN(self, mo):
123
123
#TODO: This has a different exxception type for missing objects
124
124
except UcsValidationException as e :
125
125
print "VLAN " + str (mo .Id ) + ": " + mo .Name + \
126
- " already deleted -- " + e .errorDescr
126
+ " already deleted -- " + e .errorMsg
127
127
128
128
###########
129
129
# VSANS #
@@ -159,7 +159,7 @@ def createVSAN(self, fabricid, vsanid, vsanname):
159
159
print "Created VSAN " + str (vsanid ) + ": " + vsanname
160
160
except UcsException as e :
161
161
print "VSAN " + str (vsanid ) + ": " + vsanname + \
162
- " already exists -- " + e .errorDescr
162
+ " already exists -- " + e .errorMsg
163
163
164
164
def removeVSAN (self , mo ):
165
165
try :
@@ -172,7 +172,7 @@ def removeVSAN(self, mo):
172
172
#TODO: This has a different exxception type for missing objects
173
173
except UcsValidationException as e :
174
174
print "VSAN " + str (mo .Id ) + ": " + mo .Name + \
175
- " already deleted -- " + e .errorDescr
175
+ " already deleted -- " + e .errorMsg
176
176
177
177
###############
178
178
# MAC POOLS #
@@ -558,7 +558,7 @@ def removeVnicVlan(self, vnic, vlanname):
558
558
#TODO: This has a different exception type for missing objects
559
559
except UcsValidationException as e :
560
560
print "VLAN " + str (vlanname ) + ": " + vnic .Dn + \
561
- " already deleted -- " + e .errorDescr
561
+ " already deleted -- " + e .errorMsg
562
562
563
563
####################
564
564
# VHBA TEMPLATES #
@@ -693,7 +693,7 @@ def addVnicFromTemplate(self, spt, vnicname):
693
693
"NwTemplName" : vnicname
694
694
})
695
695
except UcsException as e :
696
- print "VNIC MAP - vnic already mapped to SPT -- " + e .errorDescr
696
+ print "VNIC MAP - vnic already mapped to SPT -- " + e .errorMsg
697
697
698
698
def addVhbaFromTemplate (self , spt , vhbaname ):
699
699
try :
@@ -711,7 +711,7 @@ def addVhbaFromTemplate(self, spt, vhbaname):
711
711
"NwTemplName" : vhbaname
712
712
})
713
713
except UcsException as e :
714
- print "VHBA MAP - vhba already mapped to SPT -- " + e .errorDescr
714
+ print "VHBA MAP - vhba already mapped to SPT -- " + e .errorMsg
715
715
716
716
def setWWNNPool (self , spt , poolname ):
717
717
try :
0 commit comments