netconf-wg / restconf

9 stars 4 forks source link

sec. 4.8.1: content parameter default for datastore #50

Closed abierman closed 8 years ago

abierman commented 8 years ago

The content query parameter gets its default value from the config-stmt of the data node. (Will be rewritten in -10 to be less confusing)

The config param is also allowed for the datastore and that has no config-stmt.

What is the default?

Consider interaction with fields:

GET /restconf/data?fields=system;restconf-state;interfaces

If the default is config then the nonconfig fields selected will get skipped. If the the default is nonconfig then the config fields selected will get skipped.

The default needs to be 'all' for the datastore resource type

mbj4668 commented 8 years ago

What is "The config param"? I don't understand the issue here...

However, is the design with the "content" param future-proof? What if an "ephemeral" datastore is added, can it be handled by extending the "content" param? Can RESTCONF extentions add query params?

abierman commented 8 years ago

If the target resource identifies a datastore resource, then the default value is "all". If the target resource identifies a data resource, then the default value is determined by the "config" statement value of the

abierman commented 8 years ago

closed in draft-10