Quantcast
Viewing all articles
Browse latest Browse all 144

How to get static routing details

Hi,

 

   I am trying to get static routing details programatically( Name , Network , Next Hop IP , Route ).Pls find attachment.

   Below is sample code I am trying.

   Not sure which methods will give me static routing details,

   Pls Help.

 

 

     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 details


                }
            }
        }


Viewing all articles
Browse latest Browse all 144

Trending Articles



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