2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
12 namespace "urn:opendaylight:groupbasedpolicy:forwarding";
15 import gbp-common { prefix gbp-common; revision-date 2014-04-21; }
17 revision "2016-04-27" {
22 identity address-type {
23 description "Address type used in endoints.";
26 identity network-domain {
27 description "Basic forwarding entity";
30 identity context-type {
31 description "Type of context.";
34 typedef address-type-ref {
35 description "Reference to address type.";
41 typedef network-domain-ref {
42 description "Reference to network domain.";
48 typedef context-type-ref {
49 description "Reference to context type.";
55 grouping network-domain-key {
56 leaf network-domain-type {
57 type network-domain-ref;
60 leaf network-domain-id {
61 type gbp-common:network-domain-id;
66 grouping context-key {
68 type context-type-ref;
72 type gbp-common:context-id;
77 grouping has-address-type {
79 type address-type-ref;
84 grouping forwarding-with-tenant-fields {
86 type gbp-common:tenant-id;
88 "The tenant with which forwarding-context is associated";
91 list forwarding-context {
92 key "context-type context-id";
95 uses has-address-type;
101 list network-domain {
102 key "network-domain-type network-domain-id";
103 uses network-domain-key;
109 description "Network domain can be augmented with further information.";
113 container forwarding {
114 list forwarding-by-tenant {
116 uses forwarding-with-tenant-fields;