YANG model support

483 views
Skip to first unread message

Ian Barrere

unread,
Dec 21, 2023, 1:48:02 PM12/21/23
to sonicproject
Hello,

I'm running SONiC.master.436897-2ba3c90ad on a Mellanox ACS-MSN2700. I have done almost nothing with it and I'm quite new to SONiC in general. The rest of our hardware uses gNMI and/or RESTCONF for management, so I'd like to use the same for SONiC if possible, but it seems like the models out of the box are quite limited. I have seen things elsewhere alluding to more support, so I'm not sure if it's just a matter of adding YANG models to some directory or what.

For example, if I visit /ui after the web URL for my switch I see the following models supported:

Screenshot 2023-12-21 at 12.09.48.png

Likewise, if I run a get-capabilities via gNMI I see the same set. I see plenty of other YANG models on the system in various locations (/usr/local/yang-models/, etc), but those don't seem to be available on the interfaces.

Is it possible to extend the set of capabilities on the programmatic interfaces with more YANG models?

Thanks,
Ian

Sachin Holla

unread,
Dec 22, 2023, 11:11:11 AM12/22/23
to sonicproject
hi Ian,

RESTCONF server loads only the sonic yangs listed in import.mk file from /usr/local/yang-models directory, plus these sonic yangs. Hence you are seeing only few sonic yangs in the ui.. You can update the import.mk file and prepare a new build to view additional sonic yangs. However there may be some runtime failures.

Regards
Sachin

Waldemar Scheck

unread,
Dec 22, 2023, 11:11:53 AM12/22/23
to sonicp...@googlegroups.com

Hello,

STORDIS is shut for the festive season from 23rd December 2023 to 2nd January 2024 and we will not respond to e-mails during that time. 

We wish you a Merry Christmas and a Happy New Year!

Best Regards,

Your STORDIS Team


Hallo,

STORDIS hat Weihnachtsurlaub!  Wir haben vom 23. Dezember 2023 bis 2. Januar 2024 geschlossen und E-Mails werden während dieser Zeit nicht bearbeitet. 

Wir wünschen Ihnen ein frohes Fest und alles Gute für 2024.

Mit freundlichen Grüßen,

Ihr STORDIS Team

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/4409dae4-5701-496f-9e49-5788367a1461n%40googlegroups.com.

Ian Barrere

unread,
Dec 26, 2023, 10:30:03 AM12/26/23
to sonicproject
Hi Sachin,

Thanks for the feedback, this is exactly what I was looking for. You mention that more sonic YANG models can be loaded, but are any more common YANG models available as well? In particular I'm interested in openconfig-routing-policy.yang, for example. I can make do with the sonic models as well if necessary, just trying to gauge the current level of OpenConfig adoption.

Best,
Ian

Waldemar Scheck

unread,
Dec 26, 2023, 10:30:46 AM12/26/23
to sonicp...@googlegroups.com

Hello,

STORDIS is shut for the festive season from 23rd December 2023 to 2nd January 2024 and we will not respond to e-mails during that time. 

We wish you a Merry Christmas and a Happy New Year!

Best Regards,

Your STORDIS Team


Hallo,

STORDIS hat Weihnachtsurlaub!  Wir haben vom 23. Dezember 2023 bis 2. Januar 2024 geschlossen und E-Mails werden während dieser Zeit nicht bearbeitet. 

Wir wünschen Ihnen ein frohes Fest und alles Gute für 2024.

Mit freundlichen Grüßen,

Ihr STORDIS Team




From: sonicp...@googlegroups.com
Sent: 12/26/2023 3:30:27 PM +00:00
To: Waldema...@stordis.com
Subject: [SONiC] Re: YANG model support

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.

Sachin Holla

unread,
Dec 26, 2023, 12:31:33 PM12/26/23
to Jeff Yin, sonicproject
Hi Jeff,

Can you comment on the openconfig-routing-policy.yang support?

Thanks
Sachin

--
You received this message because you are subscribed to a topic in the Google Groups "sonicproject" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonicproject/txLcm3Uvc7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonicproject...@googlegroups.com.

Yin, Jeff

unread,
Jan 16, 2024, 4:33:12 PM1/16/24
to Sachin Holla, Gada, Bhavini, sonicproject

++Bhavini

 

Sorry, missed this thread while we were out for the winter holiday.

The transformations for that OC YANG model need to be scoped and roadmapped still. For this upcoming release we're working on OC YANG models pertaining to interfaces and VLAN configs. 

For your immediate needs, you could make do with the sonic models, as you surmised.

 

Thanks,

Jeff

 

 


Internal Use - Confidential


From: Sachin Holla <sachin...@broadcom.com>
Sent: Tuesday, December 26, 2023 09:31
To: Yin, Jeff <Jeff...@Dell.com>
Cc: sonicproject <sonicp...@googlegroups.com>
Subject: Re: [SONiC] Re: YANG model support

 

Hi Jeff,

 

Can you comment on the openconfig-routing-policy.yang support?

 

Thanks

Sachin

 

On Tue, Dec 26, 2023 at 9:00 PM 'Ian Barrere' via sonicproject <sonicp...@googlegroups.com> wrote:

Hi Sachin,

 

Thanks for the feedback, this is exactly what I was looking for. You mention that more sonic YANG models can be loaded, but are any more common YANG models available as well? In particular I'm interested in openconfig-routing-policy.yang, for example. I can make do with the sonic models as well if necessary, just trying to gauge the current level of OpenConfig adoption.

 

Best,

Ian

On Friday, December 22, 2023 at 10:11:11 AM UTC-6 Sachin Holla wrote:

hi Ian,

 

RESTCONF server loads only the sonic yangs listed in import.mk file from /usr/local/yang-models directory, plus these sonic yangs. Hence you are seeing only few sonic yangs in the ui.. You can update the import.mk file and prepare a new build to view additional sonic yangs. However there may be some runtime failures.

 

Regards

Sachin

On Friday, December 22, 2023 at 12:18:02 AM UTC+5:30 Ian Barrere wrote:

Hello,

 

I'm running SONiC.master.436897-2ba3c90ad on a Mellanox ACS-MSN2700. I have done almost nothing with it and I'm quite new to SONiC in general. The rest of our hardware uses gNMI and/or RESTCONF for management, so I'd like to use the same for SONiC if possible, but it seems like the models out of the box are quite limited. I have seen things elsewhere alluding to more support, so I'm not sure if it's just a matter of adding YANG models to some directory or what.

 

For example, if I visit /ui after the web URL for my switch I see the following models supported:

 

Likewise, if I run a get-capabilities via gNMI I see the same set. I see plenty of other YANG models on the system in various locations (/usr/local/yang-models/, etc), but those don't seem to be available on the interfaces.

Is it possible to extend the set of capabilities on the programmatic interfaces with more YANG models?

 

Thanks,

Ian

--
You received this message because you are subscribed to a topic in the Google Groups "sonicproject" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonicproject/txLcm3Uvc7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/48253db8-2f92-4841-8292-b9913b831551n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages