[Management Framework] Question for new app development.

68 views
Skip to first unread message

kelly chen

unread,
May 11, 2020, 11:46:30 PM5/11/20
to sonic-mgmt-workgroup
Hi all
If we want to enhance an app or add new app, do we use transformer method instead of current xxx_app module method?
For example, to support interface name/ port speed, do community suggest using transformer to handle these request?
Or should we put these enhancements into intf_app.go?
Thanks.

Best Regards.
/Kelly

Sachin Holla

unread,
May 14, 2020, 12:22:15 PM5/14/20
to kelly chen, sonic-mgmt-workgroup
Hi Kelly,

Transformer is the preferred method. However it is not possible to mix both methods in a yang tree. For your interface example, you will have to either enhance existing intf_app.go, OR port intf app logic to transformer method. Latter (port intf_app to transformer and more) is WIP and there will be code PRs soon.

Regards
Sachin

--
You received this message because you are subscribed to the Google Groups "sonic-mgmt-workgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonic-mgmt-workg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonic-mgmt-workgroup/88c66df9-7043-4ff3-a825-2639fa89a1a3%40googlegroups.com.

kelly chen

unread,
May 18, 2020, 5:28:21 AM5/18/20
to sonic-mgmt-workgroup
Hi Sachin
    Thanks for your reply.
    In order to avoid duplication of development, what are features in your plan? When is schedule for PRs?
 
Regards.
/Kelly

Sachin Holla於 2020年5月15日星期五 UTC+8上午12時22分15秒寫道:
Hi Kelly,

Transformer is the preferred method. However it is not possible to mix both methods in a yang tree. For your interface example, you will have to either enhance existing intf_app.go, OR port intf app logic to transformer method. Latter (port intf_app to transformer and more) is WIP and there will be code PRs soon.

Regards
Sachin

On Tue, May 12, 2020 at 9:16 AM kelly chen <chenk...@gmail.com> wrote:
Hi all
If we want to enhance an app or add new app, do we use transformer method instead of current xxx_app module method?
For example, to support interface name/ port speed, do community suggest using transformer to handle these request?
Or should we put these enhancements into intf_app.go?
Thanks.

Best Regards.
/Kelly

--
You received this message because you are subscribed to the Google Groups "sonic-mgmt-workgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonic-mgmt-workgroup+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages