Last active
August 29, 2015 14:21
-
-
Save nerdalert/1c49146a6243655a1f06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- To build/test: | |
cd ~/libnetwork/cmd/dnet | |
go build &&./dnet -d | |
- In another terminal: | |
./dnet network create net1 | |
./dnet network create net2 | |
./dnet network ls | |
./dnet network ls -q | |
./dnet network ls --no-trunc | |
./dnet network ls -q --no-trunc | |
./dnet network service create foo net1 | |
./dnet network service create bar net1 | |
./dnet network service ls | |
./dnet network service ls --no-trunc | |
./dnet network service ls -q | |
./dnet network service ls -q --no-trunc | |
./dnet network service info foo net1 | |
./dnet network service info bar net1 | |
./dnet network info net1 | |
Output of commands examples: | |
./dnet network create net1 | |
7f00da0b9efdf6a76ffe6eb1f5873296fcfa400ad84c9515b1eed368fd426ee8 | |
./dnet network create net2 | |
e1fa1137d463c948d5be254895d68f82f88786dc4f4c25774e11fd1bbad41d58 | |
./dnet network ls | |
NETWORK ID NAME TYPE | |
7f00da0b9efd net1 null | |
e1fa1137d463 net2 null | |
./dnet network ls -q | |
7f00da0b9efd | |
e1fa1137d463 | |
./dnet network ls --no-trunc | |
NETWORK ID NAME TYPE | |
7f00da0b9efdf6a76ffe6eb1f5873296fcfa400ad84c9515b1eed368fd426ee8 net1 null | |
e1fa1137d463c948d5be254895d68f82f88786dc4f4c25774e11fd1bbad41d58 net2 null | |
./dnet network ls -q --no-trunc | |
7f00da0b9efdf6a76ffe6eb1f5873296fcfa400ad84c9515b1eed368fd426ee8 | |
e1fa1137d463c948d5be254895d68f82f88786dc4f4c25774e11fd1bbad41d58 | |
./dnet network service create foo net1 | |
f627dbe88b6b5ff782169ee5fb462b329fcdc1bf95f2d653a1cd7db57a80f117 | |
./dnet network service create bar net1 | |
26cf4a9e4d8d0893332701caf3f32689b57787efb1730c93324699cb16b04a04 | |
./dnet network service ls | |
NETWORK SERVICE ID NAME NETWORK | |
f627dbe88b6b foo net1 | |
26cf4a9e4d8d bar net1 | |
./dnet network service ls --no-trunc | |
NETWORK SERVICE ID NAME NETWORK | |
26cf4a9e4d8d0893332701caf3f32689b57787efb1730c93324699cb16b04a04 bar net1 | |
f627dbe88b6b5ff782169ee5fb462b329fcdc1bf95f2d653a1cd7db57a80f117 foo net1 | |
./dnet network service ls -q | |
f627dbe88b6b | |
26cf4a9e4d8d | |
./dnet network service ls -q --no-trunc | |
f627dbe88b6b5ff782169ee5fb462b329fcdc1bf95f2d653a1cd7db57a80f117 | |
26cf4a9e4d8d0893332701caf3f32689b57787efb1730c93324699cb16b04a04 | |
./dnet network service info foo net1 | |
Service Id: f627dbe88b6b5ff782169ee5fb462b329fcdc1bf95f2d653a1cd7db57a80f117 | |
Service Name: foo | |
Service Network: net1 | |
./dnet network service info foo net1 | |
Service Id: 66ba197307d05f8920d376dae43ef9cf78cb38a9cdbe1d9eeba48ed90b819dee | |
Name: foo | |
Network: net1 | |
./dnet network service info bar net1 | |
Service Id: b790780bacded89bd90330ea36160a9b005c2abfcfb66e81ae2ece5de8a0b58e | |
Name: bar | |
Network: net1 | |
./dnet network info net1 | |
Network Id: 57b3fab23c33f77ac26fdba767fe084257597ef8bfc16bfb375f26cc39359ce5 | |
Name: net1 | |
Type: null | |
Service Id: 66ba197307d05f8920d376dae43ef9cf78cb38a9cdbe1d9eeba48ed90b819dee | |
Name: foo | |
Network: net1 | |
Service Id: b790780bacded89bd90330ea36160a9b005c2abfcfb66e81ae2ece5de8a0b58e | |
Name: bar | |
Network: net1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment