NeLocationProvider
[groupbasedpolicy.git] / location-providers / ne-location-provider / src / main / yang / network-elements.yang
1 /*
2  * Copyright (c) 2015 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
9  module network-elements {
10      yang-version 1;
11
12      namespace "urn:opendaylight:groupbasedpolicy:endpoint:network:elements";
13      prefix "network-elements";
14
15      import gbp-common {
16          prefix gbp-common;
17          revision-date 2014-04-21;
18      }
19
20      import ietf-inet-types {
21          prefix inet;
22          revision-date 2010-09-24;
23      }
24
25      description
26          "This module defines network element structure for location provider.";
27
28      revision "2016-04-07" {
29          description
30              "Initial revision.";
31      }
32
33      container network-elements {
34          list network-element {
35              key iid;
36              leaf iid {
37                  description "Path to the network element
38                      represented in topology of southbound plugin.";
39                  type instance-identifier;
40              }
41              list interface {
42                  key "iid";
43                  leaf iid {
44                      description "Path to the interface
45                          represented in topology of southbound plugin.
46                          This should be more like RelativeSchemaPath
47                          from network-element's IID to interface.";
48                      type instance-identifier;
49                  }
50                  list endpoint-network {
51                      description "Set of networks somewhere behind the interface.
52                          Networks where an endpoint can be connected.";
53                      key "l3-context-id ip-prefix";
54                      leaf l3-context-id {
55                          type gbp-common:context-id;
56                      }
57                      leaf ip-prefix {
58                          type inet:ip-prefix;
59                          description
60                              "The IP prefix where an endpoint can be connected.";
61                      }
62                  }
63              }
64          }
65      }
66
67 }