Hi,
As shown in aci_demo_contract.py, I was able to create a new contract and setup several filters as well. When I try to remove a contract or filter, using mark_as_deleted() and pushing to APIC, everything work as usual but in the Secutity Policies -> Filters the property created with <contract name> + <entry name> is not removed. See below:
...
contract = Contract('mysql-contract', tenant)
entry1 = FilterEntry('entry1',
applyToFrag='no',
arpOpc='unspecified',
dFromPort='3306',
dToPort='3306',
etherT='ip',
prot='tcp',
sFromPort='1',
sToPort='65535',
tcpRules='unspecified',
parent=contract)
...
<push to APIC>
...
entry1.mark_as_deleted()
contract.mark_as_deleted()
...
<push to APIC>
...
After that, inside Secutity Policies -> Filters I still get 'mysql-contractentry1'. What should I do to remove all the entries related to my contract?
Thanks in advance,
Ivan Rocha