summaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-03-22 15:33:06 +0000
committerChristophe Closset <christophe.closset@intl.att.com>2021-03-24 06:59:47 +0000
commitd378c37fbd1ecec7b43394926f1ca32a695e07de (patch)
tree5c8a085f8732f980d871d966ac49361644efa698 /openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java
parenta6ae7294ecd336d7e88f915710b08e2658eaee00 (diff)
Reformat openecomp-be
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3449 Change-Id: I13e02322f8e00820cc5a1d85752caaeda9bf10d1
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java')
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java20
1 files changed, 8 insertions, 12 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java
index 4777d0a656..b4e9db695a 100644
--- a/openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java
+++ b/openecomp-be/api/openecomp-sdc-rest-webapp/togglz-rest/togglz-rest-services/src/main/java/org/openecomp/sdcrests/togglz/rest/services/TogglzFeaturesImpl.java
@@ -13,13 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.openecomp.sdcrests.togglz.rest.services;
+
+import java.util.Arrays;
+import javax.inject.Named;
+import javax.ws.rs.core.Response;
+import org.openecomp.sdc.be.togglz.ToggleableFeature;
import org.openecomp.sdcrests.togglz.rest.TogglzFeatures;
import org.openecomp.sdcrests.togglz.rest.mapping.MapToggleableFeatureToDto;
import org.openecomp.sdcrests.togglz.types.FeatureDto;
import org.openecomp.sdcrests.togglz.types.FeatureSetDto;
-import org.openecomp.sdc.be.togglz.ToggleableFeature;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.togglz.core.Feature;
@@ -27,10 +30,6 @@ import org.togglz.core.context.FeatureContext;
import org.togglz.core.repository.FeatureState;
import org.togglz.core.util.NamedFeature;
-import javax.inject.Named;
-import javax.ws.rs.core.Response;
-import java.util.Arrays;
-
@Named
@Service("TogglzFeature")
@Scope(value = "prototype")
@@ -49,7 +48,7 @@ public class TogglzFeaturesImpl implements TogglzFeatures {
new MapToggleableFeatureToDto().doMapping(Arrays.asList(ToggleableFeature.values()), featureSetDto);
featureSetDto.getFeatures().forEach(featureDto -> {
Feature feature = new NamedFeature(featureDto.getName());
- FeatureState featureState = new FeatureState(feature,active);
+ FeatureState featureState = new FeatureState(feature, active);
FeatureContext.getFeatureManager().setFeatureState(featureState);
});
return Response.ok().build();
@@ -58,7 +57,7 @@ public class TogglzFeaturesImpl implements TogglzFeatures {
@Override
public Response setFeatureState(String featureName, boolean active) {
Feature feature = new NamedFeature(featureName);
- FeatureState featureState = new FeatureState(feature,active);
+ FeatureState featureState = new FeatureState(feature, active);
FeatureContext.getFeatureManager().setFeatureState(featureState);
return Response.ok().build();
}
@@ -66,10 +65,7 @@ public class TogglzFeaturesImpl implements TogglzFeatures {
@Override
public Response getFeatureState(String featureName) {
boolean active = ToggleableFeature.valueOf(featureName).isActive();
- FeatureDto featureDto = new FeatureDto(featureName,active);
-
+ FeatureDto featureDto = new FeatureDto(featureName, active);
return Response.ok(featureDto).build();
}
-
}
-
#n403'>403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904
[
    {
        "id": "104e7d48.f3cf6b",
        "type": "service-logic",
        "name": "DataChange ${project.version}",
        "module": "DataChange",
        "version": "${project.version}",
        "comments": "",
        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",
        "outputs": 1,
        "x": 406.5,
        "y": 79.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "5d813483.feaafc"
            ]
        ]
    },
    {
        "id": "5d813483.feaafc",
        "type": "method",
        "name": "method msa-update-network-to-aai",
        "xml": "<method rpc='msa-update-network-to-aai' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 149.5,
        "y": 153.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "f1373060.5fa1b8"
            ]
        ]
    },
    {
        "id": "f1373060.5fa1b8",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 387.50003814697266,
        "y": 153.5666790008545,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "118d904f.a73618"
            ]
        ]
    },
    {
        "id": "5148e490.8887ac",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 128.5,
        "y": 81.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "104e7d48.f3cf6b"
            ]
        ]
    },
    {
        "id": "118d904f.a73618",
        "type": "switchNode",
        "name": "switch network-id",
        "xml": "<switch test=\"`$networks.network-id`\">\n\n",
        "comments": "",
        "outputs": 1,
        "x": 184.0104522705078,
        "y": 264.56667709350586,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "1a591305.fd6b45",
                "315839fb.fe3f4e"
            ]
        ]
    },
    {
        "id": "1a591305.fd6b45",
        "type": "other",
        "name": "other: Do Nothing",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 449.0104064941406,
        "y": 487.5666046142578,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "315839fb.fe3f4e",
        "type": "outcome",
        "name": "otn-topology",
        "xml": "<outcome value='otn-topology'>\n",
        "comments": "",
        "outputs": 1,
        "x": 415.5,
        "y": 264.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "975d8fa3.881088"
            ]
        ]
    },
    {
        "id": "975d8fa3.881088",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 610.5,
        "y": 264.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "68d9f126.b948e",
                "a34b2c50.7ce4f",
                "e99fa34f.55a988",
                "4503a33d.d9bd8c",
                "81e5bdae.f433c8"
            ]
        ]
    },
    {
        "id": "68d9f126.b948e",
        "type": "save",
        "name": "save network-resource",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource'  \n     key='network-resource.network-id = $networks.network-id' >\n<parameter name='network-id' value='`$networks.network-id`' />\n<parameter name='network-type' value='`$networks.network-types`' />\n",
        "comments": "",
        "outputs": 1,
        "x": 902.5,
        "y": 117.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "a34b2c50.7ce4f",
        "type": "save",
        "name": "save network-resource relation with esr-thirdparty-sdnc",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n      key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $networks.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$networks.network-id`\" />",
        "comments": "",
        "outputs": 1,
        "x": 992.5,
        "y": 176.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "e99fa34f.55a988",
        "type": "for",
        "name": "for each node",
        "xml": "<for index='nidx' start='0' end='`$networks.node_length`' >\n\n",
        "comments": "",
        "outputs": 1,
        "x": 836.5,
        "y": 318.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "8d4a4f94.782ed",
                "dbb6b256.7c00a"
            ]
        ]
    },
    {
        "id": "8d4a4f94.782ed",
        "type": "set",
        "name": "set node",
        "xml": "<set>\n<parameter name='node.' value='`$networks.node[$nidx].`' />\n",
        "comments": "",
        "x": 1018.5,
        "y": 317.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "dbb6b256.7c00a",
        "type": "switchNode",
        "name": "switch node-type",
        "xml": "<switch test=\"`$node.node-type`\">\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1039.5,
        "y": 417.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "c77859ef.314a08",
                "34a91f9c.019b1"
            ]
        ]
    },
    {
        "id": "c77859ef.314a08",
        "type": "outcome",
        "name": "SWITCH",
        "xml": "<outcome value='SWITCH'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1224.5,
        "y": 418.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "70a2f008.086aa8"
            ]
        ]
    },
    {
        "id": "34a91f9c.019b1",
        "type": "other",
        "name": "other : Do Nothing",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1267.5,
        "y": 541.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "70a2f008.086aa8",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 1395.5,
        "y": 419.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "1172ae87.ebdb29",
                "9cec7146.2e6ac",
                "d1692405.c347a",
                "50bbb17d.793c4",
                "869684c2.e7fdb",
                "e310391d.26926"
            ]
        ]
    },
    {
        "id": "1172ae87.ebdb29",
        "type": "execute",
        "name": "execute",
        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"pnfname\"/>\n",
        "comments": "",
        "outputs": 1,
        "x": 1574.5,
        "y": 211.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "9cec7146.2e6ac",
        "type": "save",
        "name": "save pnf details to AAI",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf'\nkey='pnf.pnf-name = $pnfname' >\n    <parameter name='pnf-name' value='`$pnfname`' />\n    <parameter name='pnf-id' value='`$node.node-id`' />\n    <parameter name='operational-status' value='`$node.node-status`' />\n    <parameter name='in-maint' value='true' />\n    <parameter name='equip-type' value='`$node.node-type`' />\n    \n",
        "comments": "",
        "outputs": 1,
        "x": 1629.5,
        "y": 267.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "d1692405.c347a",
        "type": "save",
        "name": "save pnf relationship to network-resource in AAI",
        "xml": "\n<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $pnfname' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $networks.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$networks.network-id`\" />\n",
        "comments": "",
        "outputs": 1,
        "x": 1732.5,
        "y": 331.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "50bbb17d.793c4",
        "type": "for",
        "name": "for each termination point",
        "xml": "<for index='tpidx' start='0' end='`$node.termination-point_length`' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1600.5,
        "y": 592.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "7af64957.8fa6b8",
                "f7da9215.3d16c",
                "9a1981e1.920fd8",
                "6b40a855.ff49b",
                "32cd571a.6766f",
                "79c2bf41.e84278",
                "6ab14ba2.b06b3c"
            ]
        ]
    },
    {
        "id": "7af64957.8fa6b8",
        "type": "set",
        "name": "set termination point",
        "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tpidx].`' />\n",
        "comments": "",
        "x": 1870.5,
        "y": 623.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "6b40a855.ff49b",
        "type": "save",
        "name": "save p-interface to AAI",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $pnfname\n      AND p-interface.interface-name = $interfaceName' >      \n<parameter name='interface-name' value='`$interfaceName`' />\n<parameter name='port-description' value='`$tp.tp-id`' />\n<parameter name='network-ref' value='`$tp.network-ref`' />\n<parameter name='interface-type' value='`$tp.tp-type`' />\n<parameter name='in-maint' value=\"true\" />\n<parameter name='network-interface-type' value='`$network-interface-type`' />\n<parameter name='speed-units' value=\"Gbps\" />\n<parameter name='speed-value' value='100' />\n<parameter name='available-capacity' value='100' />\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1867.5,
        "y": 831.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "9a1981e1.920fd8",
        "type": "execute",
        "name": "execute",
        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"interfaceName\"/>\n",
        "comments": "",
        "outputs": 1,
        "x": 1844.5,
        "y": 769.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "f7da9215.3d16c",
        "type": "switchNode",
        "name": "switch tp-type",
        "xml": "<switch test=\"`$tp.tp-type`\">\n",
        "comments": "",
        "outputs": 1,
        "x": 1857.5,
        "y": 691.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "6b889540.d3439c",
                "6c79f8e4.880e78",
                "22f2d784.911b5"
            ]
        ]
    },
    {
        "id": "6b889540.d3439c",
        "type": "outcome",
        "name": "XPONDER-NETWORK",
        "xml": "<outcome value='XPONDER-NETWORK'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2095.5,
        "y": 647.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "6a2abc7e.072b44"
            ]
        ]
    },
    {
        "id": "6c79f8e4.880e78",
        "type": "outcome",
        "name": "XPONDER-CLIENT",
        "xml": "<outcome value='XPONDER-CLIENT'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2085.5,
        "y": 724.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "c1e1de7a.899c9"
            ]
        ]
    },
    {
        "id": "22f2d784.911b5",
        "type": "other",
        "name": "other  : Do Nothing",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2095.5,
        "y": 797.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "4503a33d.d9bd8c",
        "type": "for",
        "name": "for each link",
        "xml": "<for index='lidx' start='0' end='`$networks.link_length`' >\n\n\n",
        "comments": "",
        "outputs": 1,
        "x": 797.5,
        "y": 592.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "e267bbc9.6ea998",
                "3d7fd479.ed54bc"
            ]
        ]
    },
    {
        "id": "e267bbc9.6ea998",
        "type": "set",
        "name": "set link",
        "xml": "<set>\n<parameter name='link.' value='`$networks.link[$lidx].`' />\n",
        "comments": "",
        "x": 992.5,
        "y": 538.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "3d7fd479.ed54bc",
        "type": "switchNode",
        "name": "switch link-type",
        "xml": "<switch test=\"`$link.link-type`\">\n",
        "comments": "",
        "outputs": 1,
        "x": 959.5,
        "y": 678.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "73a2e499.1ff214",
                "f6f62047.3cff1"
            ]
        ]
    },
    {
        "id": "73a2e499.1ff214",
        "type": "outcome",
        "name": "OTN-LINK",
        "xml": "<outcome value='OTN-LINK'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1172.5,
        "y": 674.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "2630e595.f233aa"
            ]
        ]
    },
    {
        "id": "f6f62047.3cff1",
        "type": "other",
        "name": "other : Do Nothing",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1124.5,
        "y": 778.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "2630e595.f233aa",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 1173.5,
        "y": 1175.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "4e7725d2.f582b4",
                "e002d5f0.653908",
                "b0fde3b8.a17ea",
                "f2c0c6e.cf39138",
                "281eb291.a9a1e6",
                "fe4625e.c7038d8",
                "af77ded3.a07b1",
                "f2060323.e44fc8"
            ]
        ]
    },
    {
        "id": "4e7725d2.f582b4",
        "type": "execute",
        "name": "execute",
        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$link.link-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.link-id\"/>\n    <parameter name=\"target\" value=\"#\"/>\n    <parameter name=\"replacement\" value=\"_\"/>\n",
        "comments": "",
        "outputs": 1,
        "x": 1433.5,
        "y": 1034.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "e002d5f0.653908",
        "type": "save",
        "name": "save logical-link details to AAI",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link'\nkey='logical-link.link-name = $tmp.link-id' >\n    <parameter name='link-name' value='`$tmp.link-id`' />\n    <parameter name='link-type' value='`$link.link-type`' />\n    <parameter name='in-maint' value='true' />\n    <parameter name='speed-value' value='100' />\n    <parameter name='speed-units' value='Gbps' />\n    <parameter name='operational-status' value='`$link.administrative-state`' />\n    <parameter name='available-capacity' value='100' />\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1522.5,
        "y": 1174.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "6a2abc7e.072b44",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 2309.5,
        "y": 648.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "99d1c3f3.3da028"
            ]
        ]
    },
    {
        "id": "c1e1de7a.899c9",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 2296.5,
        "y": 727.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "98775e23.b3ef58"
            ]
        ]
    },
    {
        "id": "99d1c3f3.3da028",
        "type": "set",
        "name": "set network-interface-type as NNI",
        "xml": "<set>\n<parameter name='network-interface-type' value='NNI' />\n",
        "comments": "",
        "x": 2550.5,
        "y": 647.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "98775e23.b3ef58",
        "type": "set",
        "name": "set network-interface-type as UNI",
        "xml": "<set>\n<parameter name='network-interface-type' value='UNI' />\n",
        "comments": "",
        "x": 2553.5,
        "y": 725.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "32cd571a.6766f",
        "type": "set",
        "name": "set speed-value as null",
        "xml": "<set>\n<parameter name='speed-value' value='' />\n<parameter name='available-capacity' value='' />\n<parameter name='network-interface-type' value='' />\n",
        "comments": "",
        "x": 1879.5,
        "y": 540.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "b0fde3b8.a17ea",
        "type": "set",
        "name": "set link-parameters",
        "xml": "<set>\n<parameter name='interface1' value=\"`$link.source.source-tp`\" />\n<parameter name='interface2' value=\"`$link.destination.dest-tp`\" />\n<parameter name='pnf1' value=\"`$link.source.source-node`\" />\n<parameter name='pnf2' value=\"`$link.destination.dest-node`\" />\n",
        "comments": "",
        "x": 1494.5,
        "y": 1083.566665649414,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "f2c0c6e.cf39138",
        "type": "save",
        "name": "save logical-link relationship to p-interface",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $tmp.link-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $pnfname1 + '/p-interfaces/p-interface/' + $pinterface1 `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$pnfname1`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $pnfname2 + '/p-interfaces/p-interface/' + $pinterface2 `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$pnfname2`\" /> ",
        "comments": "",
        "outputs": 1,
        "x": 1505.5,
        "y": 1545.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "79c2bf41.e84278",
        "type": "save",
        "name": "save pnf & p-interface in DB",
        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE VALUES ( $interfaceName , $tp.tp-id , $pnfname , $node.node-id , $controller_id , '100' , $clli , null );\">\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1793.5,
        "y": 1015.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "281eb291.a9a1e6",
        "type": "get-resource",
        "name": "get source pnf-name and interface-name UUID from DB",
        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT pnf_name, interface_name \nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE \nWHERE pnf_id = $link.source.source-node\nAND interface_id = $link.source.source-tp' \npfx='db.source'>\n    \n    \n    \n    \n    \n    \n    \n    \n",
        "comments": "",
        "outputs": 1,
        "x": 1618.5,
        "y": 1325.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "20ab3da2.39562a"
            ]
        ]
    },
    {
        "id": "fe4625e.c7038d8",
        "type": "record",
        "name": "record",
        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"print direct name\"/>\n<parameter name=\"field2\" value=\"`$pnfname1`\"/>\n",
        "comments": "",
        "outputs": 1,
        "x": 1473.5,
        "y": 1383.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "20ab3da2.39562a",
        "type": "success",
        "name": "success",
        "xml": "<outcome value='success'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1936.5,
        "y": 1329.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "22cab29c.5a4c96"
            ]
        ]
    },
    {
        "id": "22cab29c.5a4c96",
        "type": "set",
        "name": "set",
        "xml": "<set>\n<parameter name='pnfname1' value='`$db.source.pnf-name`' />\n<parameter name='pinterface1' value='`$db.source.interface-name`' />\n\n\n\n\n\n",
        "comments": "",
        "x": 2090.5,
        "y": 1321.566665649414,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "af77ded3.a07b1",
        "type": "get-resource",
        "name": "get destination pnf-name and interface-name UUID from DB",
        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT pnf_name, interface_name \nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE \nWHERE pnf_id = $link.destination.dest-node\nAND interface_id = $link.destination.dest-tp' \npfx='db1.destination'>\n    \n    \n    \n    \n    \n    \n    \n    \n",
        "comments": "",
        "outputs": 1,
        "x": 1589.5,
        "y": 1460.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "de812346.e33968"
            ]
        ]
    },
    {
        "id": "de812346.e33968",
        "type": "success",
        "name": "success",
        "xml": "<outcome value='success'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1922.5,
        "y": 1453.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "7c98abe2.520c94"
            ]
        ]
    },
    {
        "id": "7c98abe2.520c94",
        "type": "set",
        "name": "set",
        "xml": "<set>\n<parameter name='pnfname2' value='`$db1.destination.pnf-name`' />\n<parameter name='pinterface2' value='`$db1.destination.interface-name`' />\n\n\n\n\n\n",
        "comments": "",
        "x": 2082.5,
        "y": 1455.566665649414,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "f2060323.e44fc8",
        "type": "record",
        "name": "record",
        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n\n<parameter name=\"field1\" value=\"`$pnf1`\"/>\n<parameter name=\"field2\" value=\"`$interface1`\"/>\n<parameter name=\"field3\" value=\"`$pnf2`\"/>\n<parameter name=\"field4\" value=\"`$interface2`\"/>\n\n\n\n\n\n\n\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1464.5,
        "y": 1126.566665649414,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "869684c2.e7fdb",
        "type": "execute",
        "name": "split node-id",
        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$node.node-id`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/>\n",
        "comments": "",
        "outputs": 1,
        "x": 1632.5,
        "y": 387.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "e310391d.26926",
        "type": "execute",
        "name": "execute",
        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/openroadm/v2/networks/openroadm-network/nodes/' + $param-prefix1[0]`\"/>  \n    <parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>  \n    <parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>  \n    <parameter name=\"format\" value=\"json\"/>  \n    <parameter name=\"httpMethod\" value=\"get\"/>  \n    <parameter name=\"responsePrefix\" value=\"cllires\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.msa.jks\"/>  \n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>  \n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>  \n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n    \n    \n    \n    \n",
        "comments": "",
        "outputs": 1,
        "x": 1631.5,
        "y": 446.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "e92a74f4.54bde",
                "3cb543e1.cd89e4"
            ]
        ]
    },
    {
        "id": "3ae8595f.f2c786",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 1946.5,
        "y": 461.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "e714cae6.771e5"
            ]
        ]
    },
    {
        "id": "e714cae6.771e5",
        "type": "set",
        "name": "set",
        "xml": "<set>\n<parameter name='clli' value='`$cllires.supporting-node[0].node-ref`' />\n",
        "comments": "",
        "x": 2128.5,
        "y": 456.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": []
    },
    {
        "id": "3cb543e1.cd89e4",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1809.5,
        "y": 393.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "db88dbe6.1f184"
            ]
        ]
    },
    {
        "id": "e92a74f4.54bde",
        "type": "success",
        "name": "success",
        "xml": "<outcome value='success'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1775.5,
        "y": 462.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            [
                "3ae8595f.f2c786"
            ]
        ]
    },
    {
        "id": "db88dbe6.1f184",
        "type": "record",
        "name": "record",
        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-delete.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Getting clli failed\"/>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1950.5,
        "y": 387.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "6ab14ba2.b06b3c",
        "type": "save",
        "name": "save",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='custom-query' \n      key=\"format='resource'\"\n      force=\"true\"\n      local-only=\"false\"\n      pfx=\"data\">      \n<parameter name='interface-name' value='`$interfaceName`' />\n<parameter name='port-description' value='`$tp.tp-id`' />",
        "comments": "",
        "outputs": 1,
        "x": 1809,
        "y": 903.5666656494141,
        "z": "8859ea1e.d24268",
        "wires": [
            []
        ]
    },
    {
        "id": "81e5bdae.f433c8",
        "type": "set",
        "name": "set controller_id",
        "xml": "<set>\n<parameter name='controller_id' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url`\" />\n\n\n\n",
        "comments": "",
        "x": 865.5,
        "y": 235.56666564941406,
        "z": "8859ea1e.d24268",
        "wires": []
    }
]