Lab 3.5 – delete_pool.py¶
In this lab we will review, line-by-line an example script that has been created to allow deletion of a pool using the command-line.
Task 1 – Review delete_pool.py¶
- Open
delete_pool.pyin Notepad++ - We will review the code. For brevity we have removed lines that are common with previous examples:
pool = mgmt.tm.ltm.pools.pool.load(partition=args.partition, name=args.pool\_name)
pool.delete()
print "Deleted pool %s" % pool\_path
These lines should be fairly self-explanatory at this point. First we load the pool and the we delete() it and print that we have done so.
