Forum Discussion

anson_5390's avatar
anson_5390
Icon for Nimbostratus rankNimbostratus
Nov 12, 2007

How to add Wide IP?

I can use Link Configuration->Inbound LB->Add to add a Wide IP and it work perfect, but i want to use iControl API to do this.

 

I has using add_pool_virtual_server,add_wideip,add_pool,but nothing to happen..

 

Could anybody tell me how to work it?

1 Reply

  • I find parameter is error, the add_pool's type must set LB_RES_A, can't set LB_RES_CNAME.

     

     

    But what the mean of LB_RES_A and LB_RES_CNAME?

     

     

     

    Vector params = new Vector();

     

     

    params.addElement(new Parameter("wideip_name", String.class, strWideIP, null));

     

    params.addElement(new Parameter("pool_name", String.class, strPoolName, null));

     

    params.addElement(new Parameter("type", Integer.class, "0", null));

     

    executeWideip("add_pool", params);