diff options
Diffstat (limited to 'platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml')
-rw-r--r-- | platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml | 247 |
1 files changed, 247 insertions, 0 deletions
diff --git a/platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml b/platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml index e6a17cd1..3d36d0e4 100644 --- a/platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml +++ b/platform-logic/datachange/src/main/xml/DataChange_tapi-update-network-to-aai.xml @@ -252,6 +252,53 @@ resource="p-interface" </save>
</block>
</outcome>
+ <outcome value='OTU0'>
+ <block atomic='true'>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
+ <parameter name='ab-id' value='`$odu0`' />
+ <parameter name='odu-type' value="ODU0" />
+ <parameter name='number' value='1' />
+ </save>
+ <set>
+ <parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
+ <parameter name='odu0' value="`$random-ba + '-ODU0'`" />
+ <parameter name='odu1' value="`$random-ba + '-ODU1'`" />
+ <parameter name='odu2' value="`$random-ba + '-ODU2'`" />
+ <parameter name='odu3' value="`$random-ba + '-ODU3'`" />
+ <parameter name='odu4' value="`$random-ba + '-ODU4'`" />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
+ <parameter name='ab-id' value='`$odu1`' />
+ <parameter name='odu-type' value="ODU1" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu2' >
+ <parameter name='ab-id' value='`$odu2`' />
+ <parameter name='odu-type' value="ODU2" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu3' >
+ <parameter name='ab-id' value='`$odu3`' />
+ <parameter name='odu-type' value="ODU3" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu4' >
+ <parameter name='ab-id' value='`$odu4`' />
+ <parameter name='odu-type' value="ODU4" />
+ <parameter name='number' value='0' />
+ </save>
+ </block>
+ </outcome>
<outcome value='ODU1'>
<block atomic='true'>
<set>
@@ -299,8 +346,63 @@ resource="p-interface" </save>
</block>
</outcome>
+ <outcome value='OTU1'>
+ <block atomic='true'>
+ <set>
+ <parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
+ <parameter name='odu0' value="`$random-ba + '-ODU0'`" />
+ <parameter name='odu1' value="`$random-ba + '-ODU1'`" />
+ <parameter name='odu2' value="`$random-ba + '-ODU2'`" />
+ <parameter name='odu3' value="`$random-ba + '-ODU3'`" />
+ <parameter name='odu4' value="`$random-ba + '-ODU4'`" />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
+ <parameter name='ab-id' value='`$odu0`' />
+ <parameter name='odu-type' value="ODU0" />
+ <parameter name='number' value='2' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
+ <parameter name='ab-id' value='`$odu1`' />
+ <parameter name='odu-type' value="ODU1" />
+ <parameter name='number' value='1' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu2' >
+ <parameter name='ab-id' value='`$odu2`' />
+ <parameter name='odu-type' value="ODU2" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu3' >
+ <parameter name='ab-id' value='`$odu3`' />
+ <parameter name='odu-type' value="ODU3" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu4' >
+ <parameter name='ab-id' value='`$odu4`' />
+ <parameter name='odu-type' value="ODU4" />
+ <parameter name='number' value='0' />
+ </save>
+ </block>
+ </outcome>
<outcome value='ODU2'>
<block atomic='true'>
+ <set>
+ <parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
+ <parameter name='odu0' value="`$random-ba + '-ODU0'`" />
+ <parameter name='odu1' value="`$random-ba + '-ODU1'`" />
+ <parameter name='odu2' value="`$random-ba + '-ODU2'`" />
+ <parameter name='odu3' value="`$random-ba + '-ODU3'`" />
+ <parameter name='odu4' value="`$random-ba + '-ODU4'`" />
+ </set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
key='pnf.pnf-name = $node.uuid
AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
@@ -308,6 +410,44 @@ resource="p-interface" <parameter name='odu-type' value="ODU0" />
<parameter name='number' value='8' />
</save>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/optical-service-delete.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="ODU0 value" />
+ <parameter name="field2" value="`$odu0`"/>
+ </record>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
+ <parameter name='ab-id' value='`$odu1`' />
+ <parameter name='odu-type' value="ODU1" />
+ <parameter name='number' value='4' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu2' >
+ <parameter name='ab-id' value='`$odu2`' />
+ <parameter name='odu-type' value="ODU2" />
+ <parameter name='number' value='1' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu3' >
+ <parameter name='ab-id' value='`$odu3`' />
+ <parameter name='odu-type' value="ODU3" />
+ <parameter name='number' value='0' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu4' >
+ <parameter name='ab-id' value='`$odu4`' />
+ <parameter name='odu-type' value="ODU4" />
+ <parameter name='number' value='0' />
+ </save>
+ </block>
+ </outcome>
+ <outcome value='OTU2'>
+ <block atomic='true'>
<set>
<parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
<parameter name='odu0' value="`$random-ba + '-ODU0'`" />
@@ -318,6 +458,19 @@ resource="p-interface" </set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
+ <parameter name='ab-id' value='`$odu0`' />
+ <parameter name='odu-type' value="ODU0" />
+ <parameter name='number' value='8' />
+ </save>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/optical-service-delete.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="ODU0 value" />
+ <parameter name="field2" value="`$odu0`"/>
+ </record>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
<parameter name='ab-id' value='`$odu1`' />
<parameter name='odu-type' value="ODU1" />
@@ -393,6 +546,53 @@ resource="p-interface" </save>
</block>
</outcome>
+ <outcome value='OTU3'>
+ <block atomic='true'>
+ <set>
+ <parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
+ <parameter name='odu0' value="`$random-ba + '-ODU0'`" />
+ <parameter name='odu1' value="`$random-ba + '-ODU1'`" />
+ <parameter name='odu2' value="`$random-ba + '-ODU2'`" />
+ <parameter name='odu3' value="`$random-ba + '-ODU3'`" />
+ <parameter name='odu4' value="`$random-ba + '-ODU4'`" />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
+ <parameter name='ab-id' value='`$odu0`' />
+ <parameter name='odu-type' value="ODU0" />
+ <parameter name='number' value='40' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
+ <parameter name='ab-id' value='`$odu1`' />
+ <parameter name='odu-type' value="ODU1" />
+ <parameter name='number' value='20' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu2' >
+ <parameter name='ab-id' value='`$odu2`' />
+ <parameter name='odu-type' value="ODU2" />
+ <parameter name='number' value='5' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu3' >
+ <parameter name='ab-id' value='`$odu3`' />
+ <parameter name='odu-type' value="ODU3" />
+ <parameter name='number' value='1' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu4' >
+ <parameter name='ab-id' value='`$odu4`' />
+ <parameter name='odu-type' value="ODU4" />
+ <parameter name='number' value='0' />
+ </save>
+ </block>
+ </outcome>
<outcome value='ODU4'>
<block atomic='true'>
<set>
@@ -440,6 +640,53 @@ resource="p-interface" </save>
</block>
</outcome>
+ <outcome value='OTU4'>
+ <block atomic='true'>
+ <set>
+ <parameter name='random-ba' value="`$node.uuid + '_' + $tp.uuid`" />
+ <parameter name='odu0' value="`$random-ba + '-ODU0'`" />
+ <parameter name='odu1' value="`$random-ba + '-ODU1'`" />
+ <parameter name='odu2' value="`$random-ba + '-ODU2'`" />
+ <parameter name='odu3' value="`$random-ba + '-ODU3'`" />
+ <parameter name='odu4' value="`$random-ba + '-ODU4'`" />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu0' >
+ <parameter name='ab-id' value='`$odu0`' />
+ <parameter name='odu-type' value="ODU0" />
+ <parameter name='number' value='80' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu1' >
+ <parameter name='ab-id' value='`$odu1`' />
+ <parameter name='odu-type' value="ODU1" />
+ <parameter name='number' value='40' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu2' >
+ <parameter name='ab-id' value='`$odu2`' />
+ <parameter name='odu-type' value="ODU2" />
+ <parameter name='number' value='10' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu3' >
+ <parameter name='ab-id' value='`$odu3`' />
+ <parameter name='odu-type' value="ODU3" />
+ <parameter name='number' value='2' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='available-bandwidth'
+ key='pnf.pnf-name = $node.uuid
+ AND p-interface.interface-name = $tp.uuid AND bandwidth-attribute.bwa-id = $random-ba AND available-bandwidth.ab-id = $odu4' >
+ <parameter name='ab-id' value='`$odu4`' />
+ <parameter name='odu-type' value="ODU4" />
+ <parameter name='number' value='1' />
+ </save>
+ </block>
+ </outcome>
</switch>
</block>
</outcome>
|