diff options
author | Munir Ahmad <munir.ahmad@bell.ca> | 2020-06-05 09:29:59 -0400 |
---|---|---|
committer | Munir Ahmad <munir.ahmad@bell.ca> | 2020-06-05 09:29:59 -0400 |
commit | d119b3b1b7a793fbb4a4feeaf54aa99e48f8dd8d (patch) | |
tree | 1188b757eb0f8722b5815ad6ac183ad653dcd16d | |
parent | decb7c92edf67ba67facb7d20d0c8f66d08a46d0 (diff) |
Add operational-status to physical-link
Issue-ID: AAI-2925
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Change-Id: I13ea6f048de49ebe4616260a029c44d0f666651a
-rw-r--r-- | aai-schema/src/main/resources/onap/aai_schema/aai_schema_v20.xsd | 9 | ||||
-rw-r--r-- | aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v20.xsd b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v20.xsd index ea1273b..d8645fe 100644 --- a/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v20.xsd +++ b/aai-schema/src/main/resources/onap/aai_schema/aai_schema_v20.xsd @@ -8365,7 +8365,7 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" <xs:complexType> <xs:annotation> <xs:appinfo> - <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network",searchable="link-name,circuit-id",uriTemplate="/network/physical-links/physical-link/{link-name}",requiredProps="link-name")</annox:annotate> + <annox:annotate target="class">@org.onap.aai.annotations.Metadata(description="Collection of physical connections, typically between p-interfaces",indexedProps="circuit-id,link-name",alternateKeys1="circuit-id",container="physical-links",namespace="network",searchable="link-name,circuit-id,operational-status",uriTemplate="/network/physical-links/physical-link/{link-name}",requiredProps="link-name")</annox:annotate> </xs:appinfo> </xs:annotation> <xs:sequence> @@ -8453,6 +8453,13 @@ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" </xs:appinfo> </xs:annotation> </xs:element> + <xs:element name="operational-status" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:appinfo> + <annox:annotate target="field">@org.onap.aai.annotations.Metadata(description="Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path.",suggestibleOnSearch="true")</annox:annotate> + </xs:appinfo> + </xs:annotation> + </xs:element> <xs:element ref="tns:relationship-list" minOccurs="0"/> </xs:sequence> </xs:complexType> diff --git a/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml b/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml index 5d6cda6..2916284 100644 --- a/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml +++ b/aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml @@ -5823,6 +5823,12 @@ <xml-property name="description" value="Used for optimistic concurrency. Must be empty on create, valid on update and delete."/> </xml-properties> </xml-element> + <xml-element java-attribute="operationalStatus" name="operational-status" type="java.lang.String"> + <xml-properties> + <xml-property name="description" value="Indicator for whether the resource is considered operational. Valid values are in-service-path and out-of-service-path."/> + <xml-property name="suggestibleOnSearch" value="true"/> + </xml-properties> + </xml-element> <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v20.RelationshipList"/> </java-attributes> <xml-properties> @@ -5831,7 +5837,7 @@ <xml-property name="alternateKeys1" value="circuit-id"/> <xml-property name="container" value="physical-links"/> <xml-property name="namespace" value="network"/> - <xml-property name="searchable" value="link-name,circuit-id"/> + <xml-property name="searchable" value="link-name,circuit-id,operational-status"/> <xml-property name="uriTemplate" value="/network/physical-links/physical-link/{link-name}"/> <xml-property name="requiredProps" value="link-name"/> </xml-properties> |