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

What is the required flag in apply to perform commit with no-networking and no-out-of-sync check in python api?

pranayk2
Cisco Employee
Cisco Employee

It will be awesome if all the flags of apply can be listed out

x=root.services.nso_acl_python

x.delete()

trans.apply()

I am not able to figure out the flag to be used in apply to perform commit with no-networking and no-out-of-sync check.

Thanks

1 Accepted Solution

Accepted Solutions

sspehar
Level 1
Level 1

Hi,

the way we use it is using low level api,

for no-networking it's

trans.apply(True, _ncs.maapi.COMMIT_NCS_NO_NETWORKING)

for no-out-of-sync

trans.apply(True, _ncs.maapi.COMMIT_NCS_NO_OUT_OF_SYNC_CHECK)


more commands are listed in pyapi folder in the file gen_add_maapi_const.c


Simon

View solution in original post

2 Replies 2

sspehar
Level 1
Level 1

Hi,

the way we use it is using low level api,

for no-networking it's

trans.apply(True, _ncs.maapi.COMMIT_NCS_NO_NETWORKING)

for no-out-of-sync

trans.apply(True, _ncs.maapi.COMMIT_NCS_NO_OUT_OF_SYNC_CHECK)


more commands are listed in pyapi folder in the file gen_add_maapi_const.c


Simon

Thanks