Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Loop thru textfile, change 3 variables for every line
Post: RE: Loop thru textfile, change 3 variables for eve...

Yes, thats right. I found out, but thanks anyway:)
herbertioz General Coding Help 11 9,155 Nov-10-2016, 02:27 PM
    Thread: Loop thru textfile, change 3 variables for every line
Post: RE: Loop thru textfile, change 3 variables for eve...

Ok, maybe its me that is unclear:) subnet = split_string[2] #gets the third element in textfile as substring I will run this command to add the subnet: fvSubnet = cobra.model.fv.Subnet(fvBD, name='...
herbertioz General Coding Help 11 9,155 Nov-10-2016, 07:25 AM
    Thread: Loop thru textfile, change 3 variables for every line
Post: RE: Loop thru textfile, change 3 variables for eve...

Ok, but how can I get the output from the variable "subnet" into the red text in the line under: fvSubnet = cobra.model.fv.Subnet(fvBD, name='', descr='', ctrl='', ip='10.1.1.1/24', preferred='no', v...
herbertioz General Coding Help 11 9,155 Nov-09-2016, 02:43 PM
    Thread: Loop thru textfile, change 3 variables for every line
Post: RE: Loop thru textfile, change 3 variables for eve...

Thanks! One more thing thou: I need to change 10.1.1.1/24 with the variable subnet. So the output from subnet changes for every line. fvSubnet = cobra.model.fv.Subnet(fvBD, name='', descr='', ctrl=''...
herbertioz General Coding Help 11 9,155 Nov-09-2016, 01:11 PM
    Thread: Loop thru textfile, change 3 variables for every line
Post: RE: Loop thru textfile, change 3 variables for eve...

Perfect, J.crater:) thats nice. I have to learn more Python:) Thanks for help
herbertioz General Coding Help 11 9,155 Nov-09-2016, 11:18 AM
    Thread: Loop thru textfile, change 3 variables for every line
Post: Loop thru textfile, change 3 variables for every l...

Hi, I am working with a script which will read and copy vlan, vlanname and subnet from a textfile to variables/list. The reason is that I am going to use these variables to run some commands with a wh...
herbertioz General Coding Help 11 9,155 Nov-09-2016, 10:30 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020