-
Notifications
You must be signed in to change notification settings - Fork 15
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
Facing issues in Transformer - throws error: "No entry found in the map of module" #170
Comments
project-arlo branch doesnt yet have the changes to successfully compile openconfig-network-instances yang. |
what do you mean by compile.. ?? |
you mean pyang yang compilation? or something else ? |
Hi Balachandar, We managed to build and import all dependent modules of openconfg-network-interface.yang, to reproduce your issue. But, we've seen the unmarshall problem from request_binder.go. Any idea how to get around? When the command is issued, I1014 15:05:32.735742 88129 request_binder.go:280] modified path is: elem:<name:"network-instances" > elem:<name:"network-instance" key:<key:"name" value:"bb" > > elem:<name:"vlans" > elem:<name:"vlan" key:<key:"vlan-id" value:"13" > > elem:<name:"config" > elem:<name:"igmp-snooping" > |
You need to escape the quotation in the payload like this. -d "{ "openconfig-vlan-deviation:version": 2}" |
|
Hi Kwan Work around is not working. With the work around, now rest_server is crashing in the transformer. Please check it.
Thanks |
Hi Bala, The work around is working fine. You need to update YANG models based on SONiC modeling guideline.
. . .
. . . Make sure to list the correct TABLE names based on your sonic-igmp-snooping.yang in the common_app.go.
|
Hi Kwan Why do I need to mention - "oc-vlan-deviation" for igmp-snooping node. It should be "oc-netinst" like for the vlan node. Thanks |
Hi Kwan Why do I need to mention - "oc-vlan-deviation" for igmp-snooping node. It should be "oc-netinst" like for the vlan node, correct..?? Anyway I have modified the annotation file as you mentioned below. but still its not working. Please see the traces below. Also can you please send the rest-server trace file which is working for you. Nov 21 18:40:10.606708 sonic INFO mgmt-framework#supervisord: rest-server I1121 18:40:10.606503 53 common_app.go:64] initialize:path =/openconfig-network-instance:network-instances/network-instance[name=ee]/vlans/vlan[vlan-id=12]/config/openconfig-vlan-deviation:igmp-snooping/version Thanks |
Hi Kwan Tested with the latest code changes from the brcm_poc. With that work around is working. But facing other issues with transformer - to make the default values to be translated. Closing this one for now. |
Hi Kwan I am still facing issues with transformer when I changed the yang module from network-instance to interfaces. This time transformer is throwing empty map. I1023 19:30:09.174607 13991 xlate_to_db.go:374] Update/replace req: path("/openconfig-interfaces:interfaces/interface[name=Vlan10]/config/openconfig-interfaces-deviation:igmp-snooping/version") result("map[]"). fyi.. I also see other issue further if I put the content of the deviation yang (openconfig-interfaces-deviation.yang) inside the openconfig-interfaces.yang directly to evade the above mentioned empty map error. Please let us know when the fix is available for all these issues. box link with all the details. https://ent.box.com/s/eptoa5ss66aj30fivguww7hk1501bhd4 Please see the log below. I1023 19:30:09.149713 13991 common_app.go:64] initialize:path =/openconfig-interfaces:interfaces/interface[name=Vlan10]/config/openconfig-interfaces-deviation:igmp-snooping/version |
Seems like a dev env issue. Provided the dev env setup details. Bala confirmed that the data translation is happening now. |
To summarize that - Got the code changes from DELL team and tried the changes on 28th Oct, and confirmed that basic translation is working, but still seeing issues in other places and opened the new issue for the same in github.
|
Hi Also facing one more issue, so can you please check it I1029 12:49:11.246351 159692 db.go:745] setEntry: DoCVL for CREATE Thanks |
As discussed in yestreday's discussion with BCM team,
|
…are-to-dell_sonic_4.x_share sync from broadcom_sonic_4.x_share to dell_sonic_4.x_share - 0822
Hi
Transformer throws error saying "No entry found in the map of module" for the module "openconfig-network-instance" for the below mentioned REST api request. But the annotation file contains all the necessary information to translate.
REST request:
For me, nothing is working from this API and its children - "/restconf/data/openconfig-network-instance:network-instances/network-instance=bb/vlans/vlan=13/"
Needless to say, I am blocked by this. Please resolve it and let me know if I miss anything
Copied the trace file and other required files in the link below to recreate the issue. You need to get the openconfig-network-instance.yang and its related yang files from the openconfig github.
https://ent.box.com/s/jg7a1lnkb17obkwub9dpp32f61m7hqnw
traces:
Thanks
Balachandar
The text was updated successfully, but these errors were encountered: