[CONTROLLER-91] Module 'table-types.yang' fails pyang validation Created: 12/Dec/13  Updated: 25/Jul/23  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jan Medved Assignee: Rajani Srivastava
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: Macintosh


Attachments: File table-types.yang.diff    
External issue ID: 232

 Description   

there are duplicate, ambigiuous case statements. See the attachment for diffs how to fix



 Comments   
Comment by Jan Medved [ 12/Dec/13 ]

Attachment table-types.yang.diff has been added with description: Diffs showing how to fix the ambiguous case problem

Comment by Rajani Srivastava [ 16/Jan/14 ]

Can you tell me what type of errors are you getting while validating Module 'table-types.yang' apart from ambiguity?Or can you just provide the logs of the errors?
Is there any error like error: module "ietf-yang-types" not found in search path?

Comment by Rajani Srivastava [ 17/Jan/14 ]

CONTROLLER-91 waiting for review.

Comment by Rajani Srivastava [ 17/Jan/14 ]

Hi Jan,
Have made the changes as suggested in ".diff" attachment.On running pyang tests,another error comes out as "error: module "opendaylight-match-types" not found in search path".Reason is the difference in names of module(opendaylight-match-types.yang) and it's containing file(match-types.yang) .Hence we changed the module name from opendaylight-match-types.yang to match-types.yang.After these changes,though the model-flow-base builds successfully,but other modules like model-flow-service fail to build(because other modules also import opendaylight-match-types.yang ).
Please let us know if we need to make changes in import statements in rest of the module or is there any other approach we should follow?

Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:52:10 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.