AVI: Difference between revisions
Content added Content deleted
Line 224: | Line 224: | ||
= Using AVI SDK = |
= Using AVI SDK = |
||
cat pool_vs.py |
|||
nano pool_vs.py |
nano pool_vs.py |
||
⚫ | |||
<syntaxhighlight lang="python"> |
<syntaxhighlight lang="python"> |
||
Line 277: | Line 275: | ||
vs_obj = {'name': vs, 'vip' : [ {'ip_address': {'addr': vip, 'type': 'V4'}}], 'services': services_obj, 'pool_ref': pool_ref} |
vs_obj = {'name': vs, 'vip' : [ {'ip_address': {'addr': vip, 'type': 'V4'}}], 'services': services_obj, 'pool_ref': pool_ref} |
||
# |
#Posting VS OBJ |
||
resp = api.post('virtualservice', data=vs_obj) |
resp = api.post('virtualservice', data=vs_obj) |
||
print resp.json() |
print resp.json() |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
⚫ | |||
<br /> |
<br /> |