Nov-10-2016, 07:25 AM
(This post was last modified: Nov-10-2016, 07:40 AM by herbertioz.)
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='', descr='', ctrl='', ip='10.1.1.1/24', preferred='no', virtual='no')
How can I change 10.1.1.1/24 in the command with subnet (subnet = split_string[2])?
Is it for example so easy like:
fvSubnet = cobra.model.fv.Subnet(fvBD, name='', descr='', ctrl='', ip='subnet', preferred='no', virtual='no')
Forget it my mistake! All is good now:)
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='', descr='', ctrl='', ip='10.1.1.1/24', preferred='no', virtual='no')
How can I change 10.1.1.1/24 in the command with subnet (subnet = split_string[2])?
Is it for example so easy like:
fvSubnet = cobra.model.fv.Subnet(fvBD, name='', descr='', ctrl='', ip='subnet', preferred='no', virtual='no')
Forget it my mistake! All is good now:)