Jump to content

AVI: Difference between revisions

16 bytes removed ,  6 years ago
Line 224:
= Using AVI SDK =
 
cat pool_vs.py
nano pool_vs.py
python pool_vs.py -u admin -p Admin@123 -c 10.10.26.40 -t admin -vs test_aman -v 10.91.0.6 -po test_pool_aman
 
<syntaxhighlight lang="python">
Line 277 ⟶ 275:
vs_obj = {'name': vs, 'vip' : [ {'ip_address': {'addr': vip, 'type': 'V4'}}], 'services': services_obj, 'pool_ref': pool_ref}
 
#POstingPosting VS OBJ
resp = api.post('virtualservice', data=vs_obj)
 
print resp.json()
</syntaxhighlight>
 
python pool_vs.py -u admin -p Admin@123 -c 10.10.26.40 -t admin -vs test_aman -v 10.91.0.6 -po test_pool_aman
 
<br />
Cookies help us deliver our services. By using our services, you agree to our use of cookies.