Nov-10-2016, 01:14 PM
sounds like you're looking for:
subnet = split_string[2] #gets the third element in textfile as substring fvSubnet = cobra.model.fv.Subnet(fvBD, name='', descr='', ctrl='', ip=subnet, preferred='no', virtual='no')