Yong Tang
99aad7f08b
Add scope filter in /networks/<id>
...
This fix tries to add a `scope` in the query of `/networks/<id>`
(`NetworkInspect`) so that in case of duplicate network names,
it is possible to locate the network ID based on the network
scope (`local`, 'swarm', or `global`).
Multiple networks might exist in different scopes, which is a legitimate case.
For example, a network name `foo` might exists locally and in swarm network.
However, before this PR it was not possible to query a network name `foo`
in a specific scope like swarm.
This fix fixes the issue by allowing a `scope` query in `/networks/<id>`.
Additional test cases have been added to unit tests and integration tests.
This fix is related to docker/cli#167 , moby/moby#30897 , moby/moby#33561 , moby/moby#30242
This fix fixes docker/cli#167
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
Upstream-commit: 158b2a1875cf33f3560dedaeb0149e1fbe54c1ef
Component: engine
2017-06-12 09:54:25 -07:00
..
2016-12-30 18:26:34 +01:00
2017-06-02 17:47:03 -04:00
2017-05-11 10:18:44 -07:00
2017-05-05 12:14:29 -07:00
2017-03-24 15:31:08 -04:00
2017-03-15 10:43:18 -07:00
2017-06-06 10:52:29 -04:00
2016-12-26 21:29:17 +01:00
2016-12-30 18:26:34 +01:00
2017-06-01 13:34:31 -07:00
2017-01-12 16:57:59 +01:00
2017-06-06 10:52:29 -04:00
2017-01-03 11:49:30 +01:00
2017-06-06 10:52:29 -04:00
2017-05-30 13:04:36 -04:00
2017-04-12 15:45:29 -07:00
2017-04-16 23:39:30 +02:00
2017-03-06 16:41:33 +01:00
2017-03-06 16:41:33 +01:00
2017-04-14 16:01:56 -07:00
2017-01-03 11:49:30 +01:00
2017-01-17 12:39:08 +01:00
2017-01-03 11:49:30 +01:00
2017-03-06 16:41:33 +01:00
2017-03-06 16:41:33 +01:00
2017-04-16 23:39:30 +02:00
2017-05-10 13:26:04 -07:00
2017-03-06 16:41:33 +01:00
2017-06-06 10:08:50 +08:00
2017-02-11 00:18:01 +08:00
2017-06-06 10:08:50 +08:00
2017-05-12 10:42:29 -07:00
2017-06-12 09:54:25 -07:00
2017-03-29 10:28:51 +02:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-05-26 11:47:02 -07:00
2017-04-14 19:27:33 +02:00
2016-12-30 18:26:34 +01:00
2017-03-22 12:07:39 -07:00
2017-01-17 12:39:08 +01:00
2017-05-12 12:00:55 -07:00
2017-04-11 18:25:49 +02:00
2017-04-12 11:22:32 +02:00
2017-04-12 11:22:32 +02:00
2017-05-11 10:18:44 -07:00
2017-05-11 10:18:44 -07:00
2017-05-11 10:18:44 -07:00
2017-06-01 09:35:30 -07:00
2017-04-12 10:33:19 +00:00
2017-04-12 10:33:19 +00:00
2017-04-12 10:33:19 +00:00
2017-04-12 10:33:19 +00:00
2017-04-16 23:39:30 +02:00
2017-04-19 14:04:39 +02:00
2017-01-20 06:01:48 +00:00
2017-03-22 14:38:55 -07:00
2017-05-12 14:43:34 -07:00
2017-04-14 19:27:33 +02:00
2017-05-17 11:46:30 -07:00
2017-05-16 14:36:36 -07:00
2017-05-10 20:09:50 -04:00
2016-12-30 18:26:34 +01:00
2017-01-12 16:57:59 +01:00
2017-01-09 11:07:05 +01:00
2017-01-17 12:39:08 +01:00
2017-04-28 16:01:25 -04:00
2017-05-21 21:39:00 +03:00
2017-03-28 15:17:31 +02:00
2017-03-23 18:35:22 +01:00
2017-05-23 15:12:58 -04:00
2017-03-28 15:17:31 +02:00
2017-04-16 23:39:30 +02:00
2016-12-30 18:26:34 +01:00
2017-04-16 23:39:30 +02:00
2017-04-16 23:39:30 +02:00
2017-01-30 10:54:06 +01:00
2016-12-30 18:26:34 +01:00
2017-06-12 13:32:47 +02:00
2017-01-02 15:37:09 +01:00
2016-03-21 11:05:58 -04:00
2017-03-28 15:17:31 +02:00
2017-04-14 19:27:33 +02:00
2017-05-22 18:50:49 -04:00
2017-04-16 23:39:30 +02:00
2016-12-30 18:26:34 +01:00
2017-04-12 11:22:32 +02:00
2017-04-11 18:07:15 -04:00
2017-05-12 00:30:09 -04:00
2016-12-30 18:26:34 +01:00
2017-01-09 11:07:05 +01:00
2017-05-18 12:23:28 -07:00
2017-04-16 23:39:30 +02:00
2017-03-23 18:35:22 +01:00
2017-02-02 11:07:30 -08:00
2017-04-19 14:04:39 +02:00
2017-06-01 13:34:31 -07:00
2017-06-12 13:32:47 +02:00
2017-04-16 23:39:30 +02:00
2017-04-16 23:39:30 +02:00
2017-04-03 21:58:05 +02:00
2017-04-16 23:39:30 +02:00
2017-04-19 14:04:39 +02:00
2017-05-09 14:26:00 +01:00
2017-03-23 18:35:22 +01:00
2017-05-05 12:14:30 -07:00
2017-01-24 11:16:19 +01:00
2017-03-20 16:30:01 +08:00
2017-03-20 16:30:01 +08:00
2017-03-27 10:16:45 +08:00
2017-06-07 13:05:15 -07:00
2017-05-18 12:23:28 -07:00
2017-06-07 13:14:52 -07:00
2017-05-18 12:23:28 -07:00
2017-05-18 12:23:28 -07:00
2016-02-02 19:56:31 -08:00
2017-04-25 16:45:30 +03:00
2017-05-05 12:14:30 -07:00
2017-04-16 23:39:30 +02:00
2016-12-30 18:26:34 +01:00
2017-06-01 19:21:01 +08:00
2017-05-18 12:23:28 -07:00
2017-03-23 18:35:22 +01:00
2017-04-16 23:39:30 +02:00
2017-04-16 23:39:30 +02:00
2017-04-06 15:40:12 -07:00
2016-12-30 18:26:34 +01:00
2017-06-12 13:32:47 +02:00
2016-12-30 18:26:34 +01:00
2017-03-23 18:35:22 +01:00
2017-01-09 11:07:05 +01:00
2017-03-06 16:41:33 +01:00
2017-01-03 11:49:30 +01:00
2017-03-28 15:17:31 +02:00
2017-01-17 12:39:08 +01:00
2017-04-19 15:52:03 +02:00
2016-12-30 18:26:34 +01:00
2017-05-09 14:26:00 +01:00
2017-01-17 12:39:08 +01:00
2017-01-17 12:39:08 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2017-01-17 12:39:08 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2017-06-01 13:34:31 -07:00
2017-01-17 12:39:08 +01:00