Skip to content

Commit

Permalink
Merge 212e353 into bb80de9
Browse files Browse the repository at this point in the history
  • Loading branch information
bzsparks committed Jul 9, 2014
2 parents bb80de9 + 212e353 commit b47af77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def _progress(report):
# rebbot - system reboot
# -------------------------------------------------------------------------

def reboot(self, in_min=0):
def reboot(self, in_min=0, at=''):
"""
Perform a system reboot, with optional delay (in minutes).
Expand All @@ -458,7 +458,11 @@ def reboot(self, in_min=0):
.. todo:: need to better handle the exception event.
"""
cmd = E('request-reboot', E('in', str(in_min)))

if(in_min > 0):
cmd = E('request-reboot', E('in', str(in_min)))
else:
cmd = E('request-reboot', E('at', str(at)))

if self._multi_RE is True and self._multi_VC is False:
cmd.append(E('both-routing-engines'))
Expand Down

0 comments on commit b47af77

Please sign in to comment.