aboutsummaryrefslogtreecommitdiffstats
path: root/aai-schema/src/main
diff options
context:
space:
mode:
authorhyu2010 <henry.yu1@huawei.com>2020-09-09 13:28:37 -0400
committerhyu2010 <henry.yu1@huawei.com>2020-09-09 17:49:49 -0400
commit4cb59fb229a76eaba1906e333230f8ec34026478 (patch)
treed3e86048f8c101ecb23fe93ff1c6f1dd1d1317ff /aai-schema/src/main
parent3fd24c79537eb72274a33f330ac102812dd95fc0 (diff)
Use network-route to model 3GPP EP_Transport
(1) Add logicalInterfaceId attribute to "network-route" (2) Add cousin-edge rule between "service-instance" and "network-route" (one-to-many relation) (3) Add cousin-edge rule between allotted-resource and logical-links (one-to-many relation). This is needed for the TN NSSI model Issue-ID: AAI-2920 Signed-off-by: hyu2010 <henry.yu1@huawei.com> Change-Id: If0efa747bdbcd4a4bc4d73fadde66fe721cbfcb8 Signed-off-by: hyu2010 <henry.yu1@huawei.com>
Diffstat (limited to 'aai-schema/src/main')
-rw-r--r--aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd7
-rw-r--r--aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json25
-rw-r--r--aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml5
3 files changed, 37 insertions, 0 deletions
diff --git a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd
index b571bb0..9a79e12 100644
--- a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd
+++ b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v21.xsd
@@ -11265,6 +11265,13 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
</xs:appinfo>
</xs:annotation>
</xs:element>
+ <xs:element name="logical-interface-id" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:appinfo>
+ <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Identity of a logical interface, e.g., VLAN ID.")</annox:annotate>
+ </xs:appinfo>
+ </xs:annotation>
+ </xs:element>
<xs:element name="next-hop" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:appinfo>
diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json
index e6001b0..6bf69bf 100644
--- a/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json
+++ b/aai-schema/src/main/resources/onap/dbedgerules/v21/DbEdgeRules_v21.json
@@ -109,6 +109,18 @@
"description": ""
},
{
+ "from": "allotted-resource",
+ "to": "logical-link",
+ "label": "org.onap.relationships.inventory.ComposedOf",
+ "direction": "OUT",
+ "multiplicity": "ONE2MANY",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default": "true",
+ "description": ""
+ },
+ {
"from": "availability-zone",
"to": "complex",
"label": "org.onap.relationships.inventory.LocatedIn",
@@ -5823,6 +5835,19 @@
"prevent-delete": "NONE",
"default": "false",
"description": ""
+ },
+ {
+ "from": "service-instance",
+ "to": "network-route",
+ "label": "org.onap.relationships.inventory.ComposedOf",
+ "direction": "OUT",
+ "multiplicity": "ONE2MANY",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default": "true",
+ "description": ""
}
+
]
}
diff --git a/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml b/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml
index 44825f2..374482a 100644
--- a/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml
+++ b/aai-schema/src/main/resources/onap/oxm/v21/aai_oxm_v21.xml
@@ -8995,6 +8995,11 @@
<xml-property name="description" value="ip-address prefix length."/>
</xml-properties>
</xml-element>
+ <xml-element java-attribute="logicalInterfaceId" name="logical-interface-id" type="java.lang.String">
+ <xml-properties>
+ <xml-property name="description" value="Identity of a logical interface, e.g., VLAN ID."/>
+ </xml-properties>
+ </xml-element>
<xml-element java-attribute="nextHop" name="next-hop" type="java.lang.String">
<xml-properties>
<xml-property name="description" value="Could be ip-address, hostname, or service-instance."/>