diff options
Diffstat (limited to 'ms/gra/gra-app/src/main/resources')
7 files changed, 293 insertions, 1 deletions
diff --git a/ms/gra/gra-app/src/main/resources/application.properties b/ms/gra/gra-app/src/main/resources/application.properties index 2be250b..b78d486 100644 --- a/ms/gra/gra-app/src/main/resources/application.properties +++ b/ms/gra/gra-app/src/main/resources/application.properties @@ -22,3 +22,6 @@ spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.Im spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl spring.jpa.database=mysql +swagger-ui.host=${SDNNFT_HOST:localhost} +swagger-ui.title=SDN-NFT: GRA microservice +swagger-ui.description=SDN-NFT GRA microservice API documentation diff --git a/ms/gra/gra-app/src/main/resources/contrail-adaptor.properties b/ms/gra/gra-app/src/main/resources/contrail-adaptor.properties new file mode 100644 index 0000000..c6d98f4 --- /dev/null +++ b/ms/gra/gra-app/src/main/resources/contrail-adaptor.properties @@ -0,0 +1,40 @@ +keystone.username=admin +keystone.password=admin +tenant.password=admin +contrail.template.dir=/opt/lsc/restapi/templates +max.retry.count=3 +retry.wait=5000 +request.timeout=10000 + +simulateResponse=false +keystone.dummy.cache=true +orm.dummy.cache=true +use.orm=true + +cloud.config.use=false +cloud.config.filename=cloud_config.json +cloud.config.refresh.timer=1000 + +#orm.default_keystone_url_version=/v3 +orm.default_keystone_url_version=/v2.0 +orm.default_keystone_version_regex=/[vV][0-9] +orm.default_orm_url_replace_this=8080 +orm.default_orm_url_replace_with_this=7080 +orm.aic.client=ECOMP-SDNCP +contrail.url.regex=sdn-l-config + +#properties need to create json for policymanager configBody +configBody.service:NetworkPolicy +configBody.version:1.3.0.1 +configBody.configName:Search +configBody.policyScope:SDNC +configBody.templateVersion:1607 +configBody.location:Search +configBody.uuid:Search +configBody.priority:2 +configBody.riskType:low +configBody.riskLevel:2 +configBody.guard:True + +aic.contrail.proxy=none +aic.keystone.proxy=none diff --git a/ms/gra/gra-app/src/main/resources/contrail-api-path.properties b/ms/gra/gra-app/src/main/resources/contrail-api-path.properties new file mode 100644 index 0000000..4c04d0e --- /dev/null +++ b/ms/gra/gra-app/src/main/resources/contrail-api-path.properties @@ -0,0 +1,59 @@ +network-policy.create.path=/network-policys +network-policy.create.method=NetworkPolicy.createNetworkPolicy +network-policy.create.hasTemplateFile=Y + +network-policy.get.path=/network-policy/{contrail-network-policy-id} +network-policy.get.method=NetworkPolicy.getNetworkPolicy +network-policy.get.hasTemplateFile=N + +network-policy.delete.path=/network-policy/{contrail-network-policy-id} +network-policy.delete.method=NetworkPolicy.deleteNetworkPolicy +network-policy.delete.hasTemplateFile=N + +network-policy.update.path=/network-policy/{contrail-network-policy-id} +network-policy.update.method=NetworkPolicy.updateNetworkPolicy +network-policy.update.hasTemplateFile=Y + +network-policy.apply.path=/virtual-network/{contrail-virtual-network-id} +network-policy.apply.method=NetworkPolicy.applyNetworkPolicy +network-policy.apply.hasTemplateFile=N + +network-policy.remove.path=/virtual-network/{contrail-virtual-network-id} +network-policy.remove.method=NetworkPolicy.removeNetworkPolicy +network-policy.remove.hasTemplateFile=N + +virtual-networks.get.path=/virtual-networks +virtual-networks.get.method=NetworkPolicy.getVirtualNetworks +virtual-networks.get.hasTemplateFile=N + +virtual-network.get.path=/virtual-network/{contrail-virtual-network-id} +virtual-network.get.method=NetworkPolicy.getVirtualNetwork +virtual-network.get.hasTemplateFile=N + +fqname-to-uuid.get.path=/fqname-to-id +fqname-to-uuid.get.method=NetworkPolicy.getFqNameToUuid +fqname-to-uuid.get.hasTemplateFile=Y + +id-to-fqname.get.path=/id-to-fqname +id-to-fqname.get.method=NetworkPolicy.getIdToFqName +id-to-fqname.get.hasTemplateFile=N + +virtual-machine-interface.get.path=/virtual-machine-interface/{contrail-virtual-machine-interface-id} +virtual-machine-interface.get.method=PortMirroring.getVirtualMachineInterface +virtual-machine-interface.get.hasTemplateFile=N + +port-mirroring.enable.path=/virtual-machine-interface/{contrail-virtual-machine-interface-id} +port-mirroring.enable.method=PortMirroring.enablePortMirroring +port-mirroring.enable.hasTemplateFile=Y + +port-mirroring.disable.path=/virtual-machine-interface/{contrail-virtual-machine-interface-id} +port-mirroring.disable.method=PortMirroring.disablePortMirroring +port-mirroring.disable.hasTemplateFile=Y + +subnet.add.path=/virtual-network/{contrail-virtual-network-id} +subnet.add.method=NetworkPolicy.addSubnet +subnet.add.hasTemplateFile=N + +subnet.delete.path=/virtual-network/{contrail-virtual-network-id} +subnet.delete.method=NetworkPolicy.deleteSubnet +subnet.delete.hasTemplateFile=N diff --git a/ms/gra/gra-app/src/main/resources/db/changelog/db.changelog-master.yaml b/ms/gra/gra-app/src/main/resources/db/changelog/db.changelog-master.yaml index 2b75ac8..c8fc398 100644 --- a/ms/gra/gra-app/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/ms/gra/gra-app/src/main/resources/db/changelog/db.changelog-master.yaml @@ -517,3 +517,124 @@ databaseChangeLog: - column: name: vfModuleData type: clob +- changeSet: + id: 20210620-1 + author: dtimoney@att.com + changes: + - modifyDataType: + - tableName: CONFIG_GRA_CONTRAIL_ROUTE_ALLOTTED_RESOURCES + - columnName: allottedResourceStatusResponseMessage + - newDataType: varchar(2000) + - modifyDataType: + - tableName: CONFIG_GRA_PORT_MIRROR_CONFIGURATIONS + - columnName: portMirrorConfigurationStatusResponseMessage + - newDataType: varchar(2000) + - modifyDataType: + - tableName: OPERATIONAL_GRA_CONTRAIL_ROUTE_ALLOTTED_RESOURCES + - columnName: allottedResourceStatusResponseMessage + - newDataType: varchar(2000) + - modifyDataType: + - tableName: OPERATIONAL_GRA_PORT_MIRROR_CONFIGURATIONS + - columnName: portMirrorConfigurationStatusResponseMessage + - newDataType: varchar(2000) + - modifyDataType: + - tableName: CONFIG_GRA_SERVICES + - columnName: serviceStatusResponseMessage + - newDataType: varchar(2000) + - modifyDataType: + - tableName: OPERATIONAL_GRA_SERVICES + - columnName: serviceStatusResponseMessage + - newDataType: varchar(2000) + +- changeSet: + id: 210806-1 + author: dtimoney@att.com + preConditions: + - onFail: MARK_RAN + - tableExists: + tableName: PRE_LOAD_VNF_DATA + changes: + - modifyDataType: + - tableName: PRE_LOAD_VNF_DATA + - columnName: preload_data + - newDataType: clob + - modifyDataType: + - tableName: PRE_LOAD_VNF_DATA + - columnName: eipam_payload + - newDataType: clob + - modifyDataType: + - tableName: PRE_LOAD_VNF_DATA + - columnName: gr_api_data + - newDataType: clob +- changeSet: + id: 210806-2 + author: dtimoney@att.com + preConditions: + - onFail: MARK_RAN + - tableExists: + tableName: PRE_LOAD_VNF_NETWORK_DATA + changes: + - modifyDataType: + - tableName: PRE_LOAD_VNF_NETWORK_DATA + - columnName: preload_data + - newDataType: clob + - modifyDataType: + - tableName: PRE_LOAD_VNF_NETWORK_DATA + - columnName: eipam_payload + - newDataType: clob + - modifyDataType: + - tableName: PRE_LOAD_VNF_NETWORK_DATA + - columnName: gr_api_data + - newDataType: clob +- changeSet: + id: 20210816-1 + author: kc1472@att.com + preConditions: + - onFail: MARK_RAN + - not: + - tableExists: + tableName: KEYSTONE_IDENTITY_SERVICE + changes: + - createTable: + tableName: KEYSTONE_IDENTITY_SERVICE + columns: + - column: + name: cloudRegion + type: varchar(255) + constraints: + nullable: false + primaryKey: true + - column: + name: keystoneUrl + type: varchar(255) + constraints: + nullable: false + - column: + name: mechId + type: varchar(255) + constraints: + nullable: false + - column: + name: encryptedPassword + type: varchar(255) + constraints: + nullable: false + - column: + name: modifiedTimeStamp + type: timestamp + constraints: + nullable: false + defaultValueComputed: CURRENT_TIMESTAMP + +- changeSet: + id: 20211026-1 + author: la505a@att.com + preConditions: + - onFail: MARK_RAN + - tableExists: + tableName: SERVICE_MODEL + changes: + - modifyDataType: + - tableName: SERVICE_MODEL + - columnName: filename + - newDataType: varchar(255) diff --git a/ms/gra/gra-app/src/main/resources/eipam.properties b/ms/gra/gra-app/src/main/resources/eipam.properties new file mode 100644 index 0000000..09f2b63 --- /dev/null +++ b/ms/gra/gra-app/src/main/resources/eipam.properties @@ -0,0 +1,63 @@ +eipam.templateDir=/opt/lsc/restapi/templates/ + +#mS is new in 1810, URL is driven by DME2 +eipam.service=microservice-router.lpp.att.com/services/microservice_router/v1/routes + +#DME proxy does not work in containers(1908), workaround is to call alternate.url +# 1906/1908 Can be Direct call or LGW to replace DME2 +#1906 Direct call +#eipam.alternate.url=https://st3-lppajsc.oss.att.com:8666/services/microservice_router/v1/routes +#1908 LGW to replace DME2 +#eipam.alternate.url=https://eipam1-ipaddress.dev.att.com +#eipam.rest.urlEndPoint=/eipam/rest/ipassignment/ +eipam.alternate.url=https://eipam-ipaddress1.stage.att.com + +# subContext for Direct Call, if used the LGW subContext below need to be commented out +#eipam.subContext.assign=/eipamIP/assign +#eipam.subContext.unassign=/eipamIP/unassign +#eipam.subContext.createPool=/eipamIP/createPool +#eipam.subContext.deletePool=/eipamIP/deletePool +#eipam.subContext.getPlanTopology=/eipamIP/topology +#eipam.subContext.getIPAddress=/eipamIP/getIP +#eipam.subContext.allocateSubnet=/eipamIP/allocate +#eipam.subContext.deallocateSubnet=/eipamIP/deallocate +#eipam.subContext.activateSubnet=/eipamIP/activateSubnet +#eipam.subContext.ping=/eipamIP/ping +#eipam.subContext.getPool=/eipamIP/getPool +#eipam.subContext.examineIP=/eipamIP/examineIP + +eipam.httpMethod.assign=PUT +eipam.httpMethod.unassign=POST +eipam.httpMethod.createPool=PUT +eipam.httpMethod.deletePool=POST +eipam.httpMethod.getPlanTopology=GET +eipam.httpMethod.getIPAddress=GET +eipam.httpMethod.allocateSubnet=PUT +eipam.httpMethod.deallocateSubnet=PUT +eipam.httpMethod.activateSubnet=PUT +eipam.httpMethod.ping=GET +eipam.httpMethod.getPool=POST +eipam.httpMethod.examineIP=POST + +# subContext for LGW, if used the above Direct Call subContext need to be commented out +eipam.subContext.assign=/eipam/restservices/v1/ipaddress/assign +eipam.subContext.unassign=/eipam/restservices/v1/ipaddress/unassign +eipam.subContext.createPool=/eipam/restservices/v1/ipaddress/pool +eipam.subContext.deletePool=/eipam/restservices/v1/ipaddress/pool/remove +eipam.subContext.getPlanTopology=/eipam/restservices/v1/ipaddress/plantopology +eipam.subContext.getIPAddress=/eipam/restservices/v1/ipaddress +eipam.subContext.allocateSubnet=/eipam/restservices/v1/ipaddress/subnet/allocate +eipam.subContext.deallocateSubnet=/eipam/restservices/v1/ipaddress/subnet/deallocate +eipam.subContext.activateSubnet=/eipam/restservices/v1/ipaddress/subnet/activate +eipam.subContext.ping=/eipam/restservices/v1/ipaddress/ping +eipam.subContext.getPool=/eipam/restservices/v1/ipaddress/pool +eipam.subContext.examineIP=/eipam/restservices/v1/ipaddress/examineIPAddressInfo + +eipam.connectionTimeout=30000 +eipam.receiveTimeout=60000 +#eipam.version=0.1 +#eipam.envContext=TEST +#eipam.routeOffer=ST3 +eipam.client=sdn_cp_ws +eipam.msgid=sdn +eipam.wss.user=sdn_cp_ws diff --git a/ms/gra/gra-app/src/main/resources/log4j2.properties b/ms/gra/gra-app/src/main/resources/log4j2.properties index 9bc78a3..ca0199d 100644 --- a/ms/gra/gra-app/src/main/resources/log4j2.properties +++ b/ms/gra/gra-app/src/main/resources/log4j2.properties @@ -151,11 +151,12 @@ logger.audit.level = INFO logger.audit.additivity = false logger.audit.appenderRef.AuditFile.ref = AuditFile -logger.rr.name = org.onap.logging.filter.base.PayloadLoggingServletFilter +logger.rr.name = org.onap.ccsdk.apps.filters.PayloadLoggingFilter logger.rr.level = INFO logger.rr.additivity = false logger.rr.appenderRef.RequestResponseFile.ref = RequestResponseFile + logger.ccsdk.name = org.onap.ccsdk logger.ccsdk.level = DEBUG diff --git a/ms/gra/gra-app/src/main/resources/msoadaptor.properties b/ms/gra/gra-app/src/main/resources/msoadaptor.properties new file mode 100644 index 0000000..fb7fac9 --- /dev/null +++ b/ms/gra/gra-app/src/main/resources/msoadaptor.properties @@ -0,0 +1,5 @@ +adaptorName=com.att.sdnctl.sli.adaptor.mso.MSOAdaptor +mso.user=dummy +mso.passwd=dummy +mso.restriction.uri=https://msoapih-s3.ecomp.cci.att.com:30275/restriction +mso.sleep.timer=2000 |