From dc960ff92cdb8242ccec87bb3ae862241fa2d0bd Mon Sep 17 00:00:00 2001 From: Utkarsh Raj Date: Fri, 4 Aug 2017 15:12:13 -0400 Subject: [AAI-132 Amsterdam] Check in Schema Changes VLAN Change-Id: Ic1a5c68bcad9baa2524662321d7c261280320ff9 Signed-off-by: Utkarsh Raj --- .../org/openecomp/aai/dbmodel/DbEdgeRules.java | 7 +++++- aai-schema/src/main/resources/oxm/aai_oxm_v11.xml | 27 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/aai-core/src/main/java/org/openecomp/aai/dbmodel/DbEdgeRules.java b/aai-core/src/main/java/org/openecomp/aai/dbmodel/DbEdgeRules.java index 2ab378e2..e5aa36a1 100644 --- a/aai-core/src/main/java/org/openecomp/aai/dbmodel/DbEdgeRules.java +++ b/aai-core/src/main/java/org/openecomp/aai/dbmodel/DbEdgeRules.java @@ -151,6 +151,8 @@ public class DbEdgeRules { "isMemberOf,OUT,Many2Many,false,false,false,true") .putAll("l3-network|vpn-binding", "usesVpnBinding,OUT,Many2Many,false,false,false,false") + .putAll("l3-network|instance-group", + "memberOf,OUT,Many2Many,false,false,false,false") .putAll("l3-network|subnet", "hasSubnet,OUT,Many2Many,true,false,false,reverse") .putAll("l3-network|service-instance", @@ -328,6 +330,7 @@ public class DbEdgeRules { .putAll("allotted-resource|instance-group", "isMemberOf,OUT,Many2Many,false,false,false,false") .putAll("allotted-resource|network-policy", "uses,OUT,One2One,false,false,false,false") .putAll("allotted-resource|vlan", "isPartOf,OUT,Many2Many,false,false,false,false") + .putAll("allotted-resource|l-interface", "uses,OUT,One2Many,false,false,false,false") .putAll("generic-vnf|instance-group", "isMemberOf,OUT,Many2Many,false,false,false,false") .putAll("service-instance|instance-group", "isMemberOf,OUT,Many2Many,false,false,false,false") .putAll("allotted-resource|tunnel-xconnect", "has,OUT,One2One,true,false,false,false") @@ -342,8 +345,10 @@ public class DbEdgeRules { .putAll("zone|complex", "existsIn,OUT,Many2One,false,false,false,false") .putAll("service-instance|allotted-resource", "has,OUT,Many2Many,true,false,false,false") .putAll("service-instance|allotted-resource", "uses,OUT,Many2Many,false,false,false,false") + .putAll("allotted-resource|vpn-binding", "belongsTo,OUT,Many2Many,false,false,false,false") + .putAll("allotted-resource|allotted-resource", "bindsTo,OUT,One2One,false,false,false,false") .build(); - + public static final Multimap DefaultDeleteScope = new ImmutableSetMultimap.Builder() .putAll("customer", "CASCADE_TO_CHILDREN") .putAll("cloud-region", "THIS_NODE_ONLY") diff --git a/aai-schema/src/main/resources/oxm/aai_oxm_v11.xml b/aai-schema/src/main/resources/oxm/aai_oxm_v11.xml index ff06a77c..8f0cccd3 100644 --- a/aai-schema/src/main/resources/oxm/aai_oxm_v11.xml +++ b/aai-schema/src/main/resources/oxm/aai_oxm_v11.xml @@ -2777,6 +2777,16 @@ + + + + + + + + + + @@ -5259,6 +5269,23 @@ + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg