Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

mbalachandar
Copy link
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
@@ -133,12 +134,223 @@ func (app *CommonApp) translateGet(dbs [db.MaxDB]*db.DB) error {
return err
}

func (app *CommonApp) translateSubscribe(req translateSubRequest) (translateSubResponse, error) {
return emptySubscribeResponse(req.path)
func (app *CommonApp) translateSubscribe(req *translateSubRequest) (*translateSubResponse, error) {
Copy link
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)

@@ -309,6 +521,24 @@ func (app *CommonApp) processAction(dbs [db.MaxDB]*db.DB) (ActionResponse, error
return resp, err
}

func (app *CommonApp) processSubscribe(param *processSubRequest) (processSubResponse, error) {
Copy link
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