wait_for_login() related update

Redhat ID: 1080834



On 08/13/2014 10:27 AM, Xu Tian wrote:
>
> In virttest/virt_vm.py:
>
> > @@ -1048,11 +1017,26 @@ def wait_for_login(self, nic_index=0, timeout=LOGIN_WAIT_TIMEOUT,
> >                      error_messages.append(e)
> >              time.sleep(2)
> >          # Timeout expired
> > +        logging.info("Try to get guest network status.")
> > +        s_session = self.wait_for_serial_login(30, internal_timeout,
> > +                                               username=username,
> > +                                               password=password)
> > +        if s_session:
> > +            output = s_session.cmd_output_safe("ipconfig || ifconfig",
> > +                                               timeout=60)
>
> Hi @FengYang <https://github.com/FengYang>
>
> route info is really useful for us too, could you print route info here.
>
> Thanks,
> Xu
>
>
>

Does "ip route" enough?


> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/autotest/virt-test/pull/1764/files#r16154826>.
>