cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
135
Views
0
Helpful
2
Replies
Cisco Employee

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

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

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

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

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

2 REPLIES 2
Beginner

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

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

Cisco Employee

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

Thanks