Code: Select all
/interface bridge port
add bridge=bridge_name interface=ether9
but if there are errors in the lines after this one, once we fix the error and import the file again,
we get the error
Code: Select all
failure: device already added as bridge port
Code: Select all
remove bridge_name
The problem is that in certain situations we get the error message "no such item", and the import fails,
and we get into the initial situation, in a loop.
So I think the "remove" sentence must be "conditional" the the "existence" of this bridge,
but I dont know how to code this.
The pseudo-code can be similar to :
Code: Select all
if exists(bridge-name) then delete(bridge-name)
Thanks.