Problem when calling network.get_subnet_list function
When I call get_subnet_list function I have a "None" result.
I look at commit history and I see this commit that I don't understand : 56c7f7e1
When I get the code before this commit, the get_subnet_list function return the expected result.
I don't unterstand the code :
# look only under the block
params['WHERE'] += " and subnet_path like '%#{}#%'".format(str(self.myid))
Why you use the self.myid
in this request and not as parent_subnet_id
?
I try to replace the code with this code and it's worked for me :
network.parentid = int(network.params['parent_subnet_id'])
params['WHERE'] += f" and subnet_path like '%#{network.parentid}#%'"
What do you think about this ? May be I don't use the function correctly.
Thanks !
Edited by Thibault LE RESTE