Lines Matching refs:pool
30 for pool in pools:
31 self._pools.append(pool)
47 def _get_th(self, pool): argument
50 if pool["thtype"] == "dynamic":
58 for pool in self._pools:
59 if pool["type"] == "ingress":
60 ing_pools.append(pool)
62 egr_pools.append(pool)
81 pool = self._get_pool(objid["type"])
82 th = self._get_th(pool)
83 pool_n = pool["pool"]
87 pool = self._pools[pool_n]
88 assert pool["pool"] == pool_n
89 th = self._get_th(pool)
195 for pool in pools:
198 (size, thtype) = vp.get_value(pool)
201 pool.dl_set(dlname, size, thtype)
203 pool = post_pools.get_by(pool)
206 if pool["size"] != size:
207 err_msg = "Incorrect pool size (got {}, expected {})".format(pool["size"], size)
208 if pool["thtype"] != thtype:
209 … err_msg = "Incorrect pool threshold type (got {}, expected {})".format(pool["thtype"], thtype)
211 pre_pools.del_by(pool)
212 post_pools.del_by(pool)
215 log_test("pool {} of sb {} set verification".format(pool["pool"],
216 pool["sb"]), err_msg)
237 def dl_set(self, pool, th): argument
242 pool, th))
268 (pool, th) = vp.get_value(tcbind)
271 tcbind.dl_set(pool, th)
276 if tcbind["pool"] != pool:
277 err_msg = "Incorrect pool (got {}, expected {})".format(tcbind["pool"], pool)