cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
184
Views
0
Helpful
0
Replies

How to delete proplist entry in Action

Fantolino
Level 1
Level 1

I want to create Actions to manipulate proplist of services.

Using python I'm able to create or change proplist items. I tried also to delete an entry. Non error but no effect.

with ncs.maapi.Session(m, uinfo.username, uinfo.context):
with m.start_write_trans() as t1:
root = ncs.maagic.get_root(t1)
. . .
if( input.chiave in srvIns.private.property_list.property
del srvIns.private.property_list.property[input.chiave]
self.log.debug("Done")
t1.apply()

 

0 Replies 0