Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect --all doesn't show IP information for nodes launched in default docker bridge #456

Closed
hellt opened this issue Jun 17, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hellt
Copy link
Member

hellt commented Jun 17, 2021

consider a simple lab with one node connected to the default docker bridge network

name: issue
mgmt:
  network: bridge

topology:
  nodes:
    client1:
      kind: linux
      image: ghcr.io/hellt/network-multitool

when this lab is deployed, it has IP information reported:

❯ clab dep -t ins-all-bridge.clab.yml 
INFO[0000] Parsing & checking topology file: ins-all-bridge.clab.yml 
INFO[0000] Creating lab directory: /root/testclab/clab-issue 
INFO[0000] Creating container: client1                  
INFO[0000] Writing /etc/hosts file                      
+---+--------------------+--------------+---------------------------------+-------+-------+---------+---------------+--------------+
| # |        Name        | Container ID |              Image              | Kind  | Group |  State  | IPv4 Address  | IPv6 Address |
+---+--------------------+--------------+---------------------------------+-------+-------+---------+---------------+--------------+
| 1 | clab-issue-client1 | e1aadcbff1af | ghcr.io/hellt/network-multitool | linux |       | running | 172.17.0.2/16 | NA           |
+---+--------------------+--------------+---------------------------------+-------+-------+---------+---------------+--------------+

But a subsequnet ins -a doesn't get it

❯ clab ins -a
+---+-------------------------+----------+--------------------+--------------+---------------------------------+-------+-------+---------+--------------+--------------+
| # |        Topo Path        | Lab Name |        Name        | Container ID |              Image              | Kind  | Group |  State  | IPv4 Address | IPv6 Address |
+---+-------------------------+----------+--------------------+--------------+---------------------------------+-------+-------+---------+--------------+--------------+
| 1 | ins-all-bridge.clab.yml | issue    | clab-issue-client1 | e1aadcbff1af | ghcr.io/hellt/network-multitool | linux |       | running |              |              |
+---+-------------------------+----------+--------------------+--------------+---------------------------------+-------+-------+---------+--------------+--------------+
@hellt hellt added the bug Something isn't working label Jun 17, 2021
@steiler steiler self-assigned this Jun 17, 2021
steiler added a commit to steiler/containerlab that referenced this issue Jun 17, 2021
@steiler steiler mentioned this issue Jun 17, 2021
hellt added a commit that referenced this issue Jun 17, 2021
@hellt hellt closed this as completed Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants