[YANGTOOLS-360] YangTools can not parse VPP model Created: 11/Nov/14  Updated: 10/Apr/22  Resolved: 25/Nov/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

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

Operating System: All
Platform: All


External issue ID: 2354

 Description   

The problem is at line 398 with this description node:
description
/* DAW-NOTE-ORCH: subif classification attributes can only be set

  • when the subinterface is created. Thus in order
  • to modify them, the subif must be deleted then
  • re-created with the desired classification values.
    */
    "VPP-CLI-COMMAND: create subif
    VPE-API MSG: create_subif
    PRIORITY: P1";

Here is the exception:
org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException: mismatched input 'DAW-NOTE-ORCH:' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 398 character 11
mismatched input 'classification' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 398 character 32
mismatched input 'can' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 398 character 58
mismatched input 'be' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 398 character 67
mismatched input 'when' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 399 character 26
mismatched input 'subinterface' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 399 character 35
mismatched input 'created.' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 399 character 51
mismatched input 'in' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 399 character 66
mismatched input 'to' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 400 character 26
mismatched input 'them' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 400 character 36
mismatched input 'the' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 400 character 42
mismatched input 'must' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 400 character 52
mismatched input 'deleted' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 400 character 60
mismatched input 're-created' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 401 character 26
mismatched input 'the' expecting

{SEMICOLON, LEFT_BRACE, '+'} on line 401 character 42
mismatched input 'classification' expecting {SEMICOLON, LEFT_BRACE, '+'}

on line 401 character 54
mismatched input '/' expecting

{SEMICOLON, LEFT_BRACE, '+'}

on line 402 character 10
at org.opendaylight.yangtools.yang.parser.impl.YangErrorListener.validate(YangErrorListener.java:78)
at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangSource(YangParserImpl.java:662)
at org.opendaylight.yangtools.yang.parser.util.TextToASTTransformer$TextToASTTransformation.apply(TextToASTTransformer.java:42)
at org.opendaylight.yangtools.yang.parser.util.TextToASTTransformer$TextToASTTransformation.apply(TextToASTTransformer.java:38)
at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:859)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)
at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150)
at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:106)
at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
at com.google.common.util.concurrent.ForwardingListenableFuture.addListener(ForwardingListenableFuture.java:47)
at com.google.common.util.concurrent.Futures.transform(Futures.java:613)
at com.google.common.util.concurrent.Futures.transform(Futures.java:565)
at org.opendaylight.yangtools.yang.model.repo.util.SchemaSourceTransformer.getSource(SchemaSourceTransformer.java:56)
at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:72)
at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.access$100(AbstractSchemaRepository.java:51)
at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository$1.create(AbstractSchemaRepository.java:80)
at com.google.common.util.concurrent.Futures$FallbackFuture$1.onFailure(Futures.java:468)
at com.google.common.util.concurrent.Futures$4.run(Futures.java:1140)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)
at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150)
at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:106)
at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
at com.google.common.util.concurrent.ForwardingListenableFuture.addListener(ForwardingListenableFuture.java:47)
at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1152)
at com.google.common.util.concurrent.Futures$FallbackFuture.<init>(Futures.java:456)
at com.google.common.util.concurrent.Futures.withFallback(Futures.java:441)
at com.google.common.util.concurrent.Futures.withFallback(Futures.java:374)
at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.fetchSource(AbstractSchemaRepository.java:74)
at org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository.getSchemaSource(AbstractSchemaRepository.java:105)
at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory$1.apply(SharedSchemaContextFactory.java:63)
at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory$1.apply(SharedSchemaContextFactory.java:60)
at com.google.common.collect.Iterators$8.transform(Iterators.java:860)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
at com.google.common.collect.ImmutableList.copyFromCollection(ImmutableList.java:314)
at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:253)
at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:223)
at com.google.common.util.concurrent.Futures.allAsList(Futures.java:989)
at org.opendaylight.yangtools.yang.parser.repo.SharedSchemaContextFactory.createSchemaContext(SharedSchemaContextFactory.java:134)
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.setUpSchema(NetconfDevice.java:309)
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.run(NetconfDevice.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)



 Comments   
Comment by Martin Ciglan [ 12/Nov/14 ]

https://git.opendaylight.org/gerrit/#/c/12781/

fix pushed

Generated at Wed Feb 07 20:53:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.