Skip to content

Commit 0e293b7

Browse files
Devdeep SinghVijayendra Bhamidipati
authored andcommitted
CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description: Made changes to persist the vsm configuration after updating it.
1 parent 76e1d33 commit 0e293b7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

utils/src/com/cloud/utils/cisco/n1kv/vsm/NetconfHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private String receive() {
126126
while (true) {
127127
if (inputStream.available() == 0) {
128128
int conditions = _session.waitForCondition(ChannelCondition.STDOUT_DATA
129-
| ChannelCondition.STDERR_DATA | ChannelCondition.EOF, 500);
129+
| ChannelCondition.STDERR_DATA | ChannelCondition.EOF, 2000);
130130

131131
if ((conditions & ChannelCondition.TIMEOUT) != 0) {
132132
break;

utils/src/com/cloud/utils/cisco/n1kv/vsm/VsmCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private static Element configPortProfileDetails(Document doc, String name, PortP
259259
portProf.appendChild(state);
260260

261261
// Persist the configuration across reboots.
262-
// modeConfigure.appendChild(persistConfiguration(doc));
262+
modeConfigure.appendChild(persistConfiguration(doc));
263263

264264
return configure;
265265
}
@@ -301,7 +301,7 @@ private static Element configPortProfileDetails(Document doc, String name, Switc
301301
}
302302

303303
// Persist the configuration across reboots.
304-
// modeConfigure.appendChild(persistConfiguration(doc));
304+
modeConfigure.appendChild(persistConfiguration(doc));
305305

306306
return configure;
307307
}
@@ -328,7 +328,7 @@ private static Element deletePortProfileDetails(Document doc, String name) {
328328
portDetails.appendChild(value);
329329

330330
// Persist the configuration across reboots.
331-
// modeConfigure.appendChild(persistConfiguration(doc));
331+
modeConfigure.appendChild(persistConfiguration(doc));
332332

333333
return configure;
334334
}

0 commit comments

Comments
 (0)