[Refactor] Use hostnames instead of addresses in addPool/RemovePool

[Testing]
Single dut:
1. Add white dut `jacuzzi/cozmo`(JC), input pool name `123`, check JC,
   and press `Add`, pool `123` is added to JC.
   JC -> 123

2. Input pool name `1234`, check JC, and press add, pool `1234` is
   added to JC.
   JC -> 123, 1234

3. Input pool name `12345`, check JC, and press remove, nothing
   changes from JC.
   JC -> 123, 1234

4. Input pool name `123`, check JC, and press remove, pool `123` is
   removed from JC.
   JC -> 1234

Multiple Dut:
1. Add two white dut `atlas/atlas`(AA) & `hatch/jinlon`(HJ),
   input pool name `123`, check all dut, and press `Add`, pool `123`
   is added to all duts.
   AA -> 123   HJ -> 123

2. Input pool name `1234`, check AA, and press `Add`, pool `1234`
   is only added to AA.
   AA -> 123, 1234   HJ -> 123

3. Input pool name `12345`, check all duts, and press `Add`, pool `12345`
   is added to AA & HJ.
   AA -> 123, 1234, 12345   HJ -> 123, 12345

4. Input pool name `123`, check all duts, and press `Remove`, pool `123`
   is removed from AA & HJ.
   AA -> 1234, 12345   HJ -> 12345

5. Input `12345`, check AA, and press `Remove`, pool `12345` is removed
   from AA.
   AA -> 1234   HJ -> 12345

Red Dut & Orange Dut
We have three dut, white, orange, and red.
1. Input pool name `abc`, check all duts, and press `Add`, pool `abc` is
   added to white and orange duts.
2. Input pool name `abc`, check orange dut, and press `Remove`, pool
   `abc` is removed from orange dut.

BUG=b:300939313
Test=manual

Change-Id: I8006ce898e8229ea2cc98331eafffcec377da9c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/satlab/+/5020199
Reviewed-by: Varun Thammineni <varunth@google.com>
Tested-by: Varun Thammineni <varunth@google.com>
Commit-Queue: Varun Thammineni <varunth@google.com>
3 files changed
tree: 5ed3e4729373eb59fc85670ef7b13f7dfbacc971
  1. os-dependent/
  2. src/
  3. .gitignore
  4. Makefile
  5. OWNERS