mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description: Made changes to persist the vsm configuration after updating it.
This commit is contained in:
parent
76e1d338f3
commit
0e293b7b5b
@ -126,7 +126,7 @@ public class NetconfHelper {
|
|||||||
while (true) {
|
while (true) {
|
||||||
if (inputStream.available() == 0) {
|
if (inputStream.available() == 0) {
|
||||||
int conditions = _session.waitForCondition(ChannelCondition.STDOUT_DATA
|
int conditions = _session.waitForCondition(ChannelCondition.STDOUT_DATA
|
||||||
| ChannelCondition.STDERR_DATA | ChannelCondition.EOF, 500);
|
| ChannelCondition.STDERR_DATA | ChannelCondition.EOF, 2000);
|
||||||
|
|
||||||
if ((conditions & ChannelCondition.TIMEOUT) != 0) {
|
if ((conditions & ChannelCondition.TIMEOUT) != 0) {
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -259,7 +259,7 @@ public class VsmCommand {
|
|||||||
portProf.appendChild(state);
|
portProf.appendChild(state);
|
||||||
|
|
||||||
// Persist the configuration across reboots.
|
// Persist the configuration across reboots.
|
||||||
// modeConfigure.appendChild(persistConfiguration(doc));
|
modeConfigure.appendChild(persistConfiguration(doc));
|
||||||
|
|
||||||
return configure;
|
return configure;
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ public class VsmCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Persist the configuration across reboots.
|
// Persist the configuration across reboots.
|
||||||
// modeConfigure.appendChild(persistConfiguration(doc));
|
modeConfigure.appendChild(persistConfiguration(doc));
|
||||||
|
|
||||||
return configure;
|
return configure;
|
||||||
}
|
}
|
||||||
@ -328,7 +328,7 @@ public class VsmCommand {
|
|||||||
portDetails.appendChild(value);
|
portDetails.appendChild(value);
|
||||||
|
|
||||||
// Persist the configuration across reboots.
|
// Persist the configuration across reboots.
|
||||||
// modeConfigure.appendChild(persistConfiguration(doc));
|
modeConfigure.appendChild(persistConfiguration(doc));
|
||||||
|
|
||||||
return configure;
|
return configure;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user