Quantcast
Viewing all articles
Browse latest Browse all 251495

How to get static routing details

Hi,

 

   I need to get static routing details programatically.

   Below is sample code I am trying.

 

     vcloudClient.login(userId, password);

        for (ReferenceType adminOrgRef : vcloudClient.getVcloudAdmin().getAdminOrgRefs()) {
            AdminOrganization adminOrg = AdminOrganization.getAdminOrgByReference(vcloudClient, adminOrgRef);
            for (ReferenceType adminOrgNetworkRef : adminOrg.getAdminOrgNetworkRefs()) {
                AdminOrgNetwork adminOrgNetwork = AdminOrgNetwork.getOrgNetworkByReference(vcloudClient,adminOrgNetworkRef);
               
                System.out.println("Fence Mode :"+adminOrgNetwork.getConfiguration().getFenceMode());
                if (adminOrgNetwork.getConfiguration().getFenceMode().equalsIgnoreCase("natRouted")) {

 

                   //code to get static routing info


                }
            }
        }


Viewing all articles
Browse latest Browse all 251495

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>