Juniper / contrail

Contrail repo for core components (go based)
Apache License 2.0
44 stars 32 forks source link

Support bulk create/update/delete #46

Closed nati closed 6 years ago

nati commented 6 years ago

UseCase: A client needs to create/update/delete multiple resources in a single transaction (ensure all or nothing) We need to support this bulk create/update/delete.

jnprchandras commented 6 years ago

I assume that this is not for random resources. This will be for parent and child resources. And when client is invoking this API, client need not pass UUID. It can pass the key of the resource.

nati commented 6 years ago

I would like to support any resources for helping orchestrator.

jnprchandras commented 6 years ago

Can you define API semantics? Say the resources are A->B1,B2,B3. Now Client needs to add B4 and delete B3. This can be as below as specfied in RESTConf.

{ "A": { "name": "p2p ethernet", "x":10 "B":[ { "name": "B1", "y":10, "z":40, "@operation": “create”,
},
{ "name": "B3", "@operation": “delete”,
}

}

nati commented 6 years ago

yes. will do. I prefer OpenStack Heat or terraform semantics.