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-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-28 07:56:05 -04:00
2016-10-28 07:56:05 -04:00
2017-02-02 00:42:29 +02:00
2017-02-04 00:41:35 +08:00
2016-09-19 11:19:55 -07:00
2017-05-11 15:39:41 +03:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2017-06-02 14:01:57 +02:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-11 10:08:21 -07:00
2017-05-14 13:05:41 +08:00
2016-10-19 11:39:00 -04:00
2016-11-18 10:21:04 +08:00
2017-02-07 11:08:37 -08:00
2016-12-02 03:32:04 +08:00
2017-06-02 14:01:57 +02:00
2017-02-17 00:32:48 +08:00
2017-01-15 01:59:57 +01:00
2017-01-03 09:35:40 -05:00
2017-01-03 09:35:40 -05:00
2016-10-31 11:16:02 -04:00
2016-11-08 04:55:27 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-18 10:21:04 +08:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-19 10:34:31 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-10-28 07:56:05 -04:00
2016-09-20 16:43:56 +02:00
2016-11-09 14:46:53 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-01-03 11:47:47 -05:00
2017-01-03 11:47:47 -05:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:16:02 -04:00
2016-10-31 11:16:02 -04:00
2017-05-16 15:11:39 -07:00
2017-06-01 19:21:01 +08:00
2017-05-03 12:37:28 +08:00
2016-09-29 07:42:53 -07:00
2017-05-15 16:42:43 -07:00
2017-05-11 10:08:21 -07:00
2016-09-22 14:42:06 -04:00
2016-12-16 10:11:53 -05:00
2017-06-08 15:46:50 +08:00
2017-01-10 06:40:06 +02:00
2017-04-10 16:21:43 -07:00
2016-09-19 11:19:55 -07:00
2017-02-07 11:08:37 -08:00
2017-01-03 11:47:44 -05:00
2017-01-03 11:47:44 -05:00
2016-11-18 10:21:04 +08:00
2017-02-07 11:08:37 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-28 22:15:50 +01:00
2016-11-28 22:15:50 +01:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-01-03 11:47:47 -05:00
2017-01-03 11:47:47 -05:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-12-05 17:00:36 +02:00
2016-09-07 11:05:58 -07:00
2017-04-11 13:37:04 -07:00
2017-04-11 13:37:04 -07:00
2016-11-19 13:21:16 +01:00
2016-09-07 11:05:58 -07:00
2016-11-10 15:51:32 -08:00
2016-10-24 15:20:01 -07:00
2017-06-12 09:54:25 -07:00
2016-12-02 04:18:02 +08:00
2017-02-09 11:26:20 +08:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-06-12 09:54:25 -07:00
2017-06-12 09:54:25 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-12-20 21:05:19 +08:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-05-12 10:53:44 -07:00
2017-05-12 10:53:44 -07:00
2017-06-02 14:01:57 +02:00
2017-01-10 06:40:06 +02:00
2016-12-22 13:26:53 -08:00
2016-12-22 13:26:53 -08:00
2016-11-21 13:11:40 -08:00
2016-11-21 13:11:40 -08:00
2016-10-24 15:20:01 -07:00
2016-12-05 12:00:29 -08:00
2017-02-27 18:11:28 -08:00
2017-01-27 07:32:22 -08:00
2017-01-26 13:16:11 -08:00
2016-12-23 13:29:58 -08:00
2016-12-23 13:29:58 -08:00
2016-11-18 10:21:04 +08:00
2016-10-24 15:20:01 -07:00
2016-10-24 15:20:01 -07:00
2016-10-24 15:20:01 -07:00
2017-06-02 14:01:57 +02:00
2016-11-22 12:49:38 +00:00
2016-09-19 11:19:55 -07:00
2016-12-02 04:18:02 +08:00
2016-11-18 10:18:21 +08:00
2017-02-11 00:16:48 +08:00
2016-12-20 21:05:19 +08:00
2016-11-09 14:27:43 -05:00
2016-11-09 14:27:45 -05:00
2016-11-09 14:27:45 -05:00
2016-11-09 14:27:43 -05:00
2016-11-09 14:27:43 -05:00
2017-01-13 09:51:05 -08:00
2017-05-14 13:05:41 +08:00
2017-05-19 10:48:12 -07:00
2017-05-19 10:35:34 -07:00
2017-04-10 13:41:16 -07:00
2017-04-10 13:41:16 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-11-10 13:46:02 -08:00
2016-11-10 13:46:02 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-18 09:31:31 -08:00
2017-05-19 10:35:34 -07:00
2017-05-14 11:09:19 +08:00
2016-11-09 16:09:00 -08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2017-05-29 00:22:24 +08:00
2017-02-17 00:32:48 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2017-04-03 18:40:54 -07:00
2016-12-22 12:10:09 +01:00
2017-05-15 16:42:43 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:13:41 -04:00
2016-10-31 11:13:41 -04:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:13:41 -04:00
2016-10-31 11:13:41 -04:00
2017-02-13 10:16:57 +08:00
2016-09-19 11:19:55 -07:00
2016-11-08 04:55:27 -08:00