BUG-7009: fix invalid model
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / context-reference / foo.yang
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module foo {
9     yang-version 1;
10     namespace "urn:opendaylight:foo";
11     prefix "f";
12
13     import bar { prefix "b"; }
14
15     revision "2013-10-08" {
16     }
17
18     extension context-reference {
19         argument "context-type";
20     }
21
22     container nodes {
23         leaf id {
24             type instance-identifier;
25             f:context-reference "b:identity-class";
26         }
27         leaf-list constraints {
28             type string;
29         }
30     }
31
32 }