Closed amanand closed 4 years ago
This value isn't an enumerated value, it's specifically that value 6 is deprecated and must not be used. The specification is here.
My bad..will need to change my wrapper tool to parse the keyword instead of assuming it as an enum field.
https://github.com/openconfig/gnoi/blob/0b5aea31df40c60251a246ba9047cd256488036b/system/system.proto#L127
The entry for "reserved" enum value is incorrect.
enum RebootMethod { UNKNOWN = 0; // Invalid default method. COLD = 1; // Shutdown and restart OS and all hardware. POWERDOWN = 2; // Halt and power down, if possible. HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. reserved 6; // RESET method is deprecated in favor of the gNOI <<<<<< // FactoryReset.Start(). POWERUP = 7; // Apply power, no-op if power is already on. } Please change it to enum RebootMethod { UNKNOWN = 0; // Invalid default method. COLD = 1; // Shutdown and restart OS and all hardware. POWERDOWN = 2; // Halt and power down, if possible. HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. RESERVED = 6; // RESET method is deprecated in favor of the gNOI // FactoryReset.Start(). POWERUP = 7; // Apply power, no-op if power is already on. }