Re: Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Hi Thomas, I have Implemented as below, please let me know if you forsee any issues in the below code snippet?as I have just started learning python from last week def wifi_connect_verify(self): """ Verify Connectivity of WIFI module to the Access. :return: c

Re: Issue in parsing the strings in python code

2018-11-12 Thread Brian Oney via Python-list
On Mon, 2018-11-12 at 14:17 +, Rhodri James wrote: > On 12/11/2018 09:37, srinivasan wrote: > > Because the problem is every time when ever I see the output using the > > "nmcli c show", the below output is the weird output, so instead of > > connecting to SSID "NIFunkloch" it randomly connect

Re: Issue in parsing the strings in python code

2018-11-12 Thread Rhodri James
On 12/11/2018 09:37, srinivasan wrote: Because the problem is every time when ever I see the output using the "nmcli c show", the below output is the weird output, so instead of connecting to SSID "NIFunkloch" it randomly connects to "NIFunkloch 1552" or sometimes to NIFunkloch 1000" or so on r

Re: Issue in parsing the strings in python code

2018-11-12 Thread Thomas Jollans
On 2018-11-12 10:23, srinivasan wrote: > Hi Thomas, > > Great to hear from you, Could you please let me know how do I get the UUID > "1da7d068-4548-4446-bf88-a440e49db1b1" by passing the name of the SSID > "Funkloch' using "nmcli --terse" ?? Have a look at the output. It appears to me that the f

Re: Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Because the problem is every time when ever I see the output using the "nmcli c show", the below output is the weird output, so instead of connecting to SSID "NIFunkloch" it randomly connects to "NIFunkloch 1552" or sometimes to NIFunkloch 1000" or so on root:~/qa/robot_tests# nmcli c show NAME

Re: Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Hi Thomas, Great to hear from you, Could you please let me know how do I get the UUID "1da7d068-4548-4446-bf88-a440e49db1b1" by passing the name of the SSID "Funkloch' using "nmcli --terse" ?? Many thanks in advance, Srini On Mon, Nov 12, 2018 at 9:59 AM Thomas Jollans wrote: > On 12/11/2018 0

Re: Issue in parsing the strings in python code

2018-11-12 Thread Thomas Jollans
On 12/11/2018 09:28, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > [snip] > > > root:~/qa/robot_tests# nmcli c show Pro tip: many *nix tools have a flag that makes them

Re: Issue in parsing the strings in python code

2018-11-12 Thread Shakti Kumar
On Mon, 12 Nov 2018 at 14:02, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > 1. Could you please do the needful in guiding me, that how can I extract > the strings under th

Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Dear Python Experts team, This question might be very simple for you, As am newbie to python, could you please how to parse the below strings 1. Could you please do the needful in guiding me, that how can I extract the strings under the UUID column in python code in the below output (nmcli c show