1 Reply Latest reply on Sep 20, 2016 9:29 AM by nontster

    VCD API call for Fence vApp operation

    nontster Lurker

      Hello,

       

      I'm trying to make the API call as same as Fence vApp operation from VCD UI shown in attached image.

       

      I've tried snippet code below but it's behavior not same as made on UI.

       

       

      NetworkConfigSectionType networkConfigSectionType = vapp.getNetworkConfigSection();
      networkConfigSectionType.getNetworkConfig().get(0).getConfiguration().setFenceMode(FenceModeValuesType.NATROUTED.value());
      vapp.updateSection(networkConfigSectionType).waitForTask(0);*/

      NetworkConfigSectionType networkConfigSectionType = vapp.getNetworkConfigSection();

       

      networkConfigSectionType.getNetworkConfig().get(0).getConfiguration().setFenceMode(FenceModeValuesType.BRIDGED.value());

       

      vapp.updateSection(networkConfigSectionType).waitForTask(0);

       

       

       

      ps. My vApp directly connected to Org VDC Network.

       

      Any idea?

       

      Thank you.

       

      Nont

       

       

      FenceVApp.PNG

        • 1. Re: VCD API call for Fence vApp operation
          nontster Lurker

          For more information, here are snapshots of their behavior.

           

          1. Checked Fence vApp and click Apply, Org VDC network status show "Updating Network"

           

          fence_ui_01.PNG

           

          2. On Task Details, operation is "Updating Network..."

          fence_ui_02.PNG

           

          3. Using API, instead of update status shown as 1. but update status shown beside vApp name

          fence_api_01.PNG

           

          4. On Task Details, operation is "Updating Virtual Application..."

           

          fence_api_02.PNG