Skip to content

Subscribe response translation API implementation for the common app module#88

Closed
mbalachandar wants to merge 4 commits intosonic-net:masterfrom
mbalachandar:subscribe_resp_translation
Closed

Subscribe response translation API implementation for the common app module#88
mbalachandar wants to merge 4 commits intosonic-net:masterfrom
mbalachandar:subscribe_resp_translation

Conversation

@mbalachandar
Copy link
Copy Markdown
Contributor

Subscribe response translation API implementation for the common app module, to generically translate the database table and key info into corresponding YANG list node key(s) using the YANG schema, annotations, path and key transformers if needed, and populate the converted YANG key into the list node's key value of the URI

Required for the subscription enhancements as described in HLD sonic-net/SONiC#1287

…module, to generically translate the database table and key info into corresponding YANG list node key(s) using the YANG schema, annotations, path and key transformers if needed, and populate the converted YANG key into the list node's key value of the URI

func (app *CommonApp) translateSubscribe(req translateSubRequest) (translateSubResponse, error) {
return emptySubscribeResponse(req.path)
func (app *CommonApp) translateSubscribe(req *translateSubRequest) (*translateSubResponse, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signature does not match the appInterface method:

translateSubscribe(req translateSubRequest) (translateSubResponse, error)

return resp, err
}

func (app *CommonApp) processSubscribe(param *processSubRequest) (processSubResponse, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signature does not match the appInterface method:

processSubscribe(req processSubRequest) (processSubResponse, error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants