clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
206 stars 69 forks source link

Auto commit enable #516

Closed khromenokroman closed 2 months ago

khromenokroman commented 2 months ago

Hello

curl -sX POST http://127.0.0.1:8080/restconf/data/clixon-roma:contexts/context=sample/firewall/address/ipv4/ipv4-address/address-group=ROMA-MONITOR/address-types/ -H 'Content-Type: application/yang-data+json' -d '{"clixon-roma:ip-subnets":["1.1.11.10/32"]}' -u 'sysadmin:$6$Edxj1MHJOWWrst2D$YTkLzv7EFQrSKeYWTq7BSw0Bu33qq5Teo/G.fMs2w0IcY0wwmLB25qVxa6/hHrSMhQvBrrfjaYIJ85d9D6zkj/'

When executing this request, a commit occurs, I can disable this function in order to first execute all commands and then when it is necessary to commit separately

olofhagsand commented 2 months ago

RESTCONF in RFC 8040 mandates a commit after each PUT/POST. Therefore it is according to standard to commit. Or did I misunderstand the issue?

khromenokroman commented 2 months ago

RESTCONF in RFC 8040 mandates a commit after each PUT/POST. Therefore it is according to standard to commit. Or did I misunderstand the issue?

Yes, that's what I meant, thank you very much