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;
71 type gbp-common:context-id;
75 grouping has-address-type {
77 type address-type-ref;
82 grouping forwarding-fields {
93 grouping forwarding-with-tenant-fields {
95 type gbp-common:tenant-id;
97 "The tenant with which forwarding-context is associated";
100 list forwarding-context {
101 key "context-type context-id";
104 uses forwarding-fields;
107 list network-domain {
108 key "network-domain-type network-domain-id";
109 uses network-domain-key;
111 uses forwarding-fields;
112 description "Network domain can be augmented with further information.";
116 container forwarding {
117 list forwarding-by-tenant {
119 uses forwarding-with-tenant-fields;