Add --filter scope=swarm|local for docker network ls#31529
Add --filter scope=swarm|local for docker network ls#31529thaJeztah merged 1 commit intomoby:masterfrom
--filter scope=swarm|local for docker network ls#31529Conversation
|
I think we still need to update swagger.yml. WDYT? @yongtang |
a6fa0ea to
7744fbb
Compare
|
Thanks @allencloud. The PR has been updated with changes in swagger.yaml added. |
|
@allencloud The PR has been updated. Thanks. |
api/swagger.yaml
Outdated
There was a problem hiding this comment.
I prefer to add scope before type since out of alphabetical order, WDYT?
7744fbb to
49753b7
Compare
|
Thanks @allencloud. The swagger.yaml, docs, and man have been updated. |
There was a problem hiding this comment.
I think this should be local scope. ^^
There was a problem hiding this comment.
@allencloud My bad. The PR has been updated. Thanks.
man/src/network/ls.md
Outdated
There was a problem hiding this comment.
I think this should be local scope. ^^
49753b7 to
46593c3
Compare
|
Design, and code looks good to me, but needs a rebase @yongtang 😅 |
|
Don't forget to add a mention to the API history; https://github.com/docker/docker/blob/master/docs/api/version-history.md |
api/swagger.yaml
Outdated
There was a problem hiding this comment.
Thanks @cpuguy83 @thaJeztah. Yes I forgot libnetwork have the legacy external K-V store mode (global).
The PR has been updated and rebased. Please take a look.
46593c3 to
d93a710
Compare
docs/api/version-history.md
Outdated
There was a problem hiding this comment.
I think this should go under API 1.29 now - we had to bump the API version for 17.03.1
There was a problem hiding this comment.
Thanks @thaJeztah. The PR has been updated with version changed.
This fix tries to address the request in 31324 by adding `--filter scope=swarm|local` for `docker network ls`. As `docker network ls` has a `SCOPE` column by default, it is natural to add the support of `--filter scope=swarm|local`. This fix adds the `scope=swarm|local` support for `docker network ls --filter`. Related docs has been updated. Additional unit test cases have been added. This fix fixes 31324. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
d93a710 to
704ea8f
Compare
vdemeester
left a comment
There was a problem hiding this comment.
LGTM 🐮
/cc @thaJeztah for docs-review 👼
|
windows completed but failed to notify github |
|
Thanks @yongtang! |
- What I did
This fix tries to address the request in #31324 by adding
--filter scope=swarm|localfordocker network ls.As
docker network lshas aSCOPEcolumn by default, it is natural to add the support of--filter scope=swarm|local.- How I did it
This fix adds the
scope=swarm|localsupport fordocker network ls --filter.Related docs has been updated.
- How to verify it
Additional unit test cases have been added.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
This fix fixes #31324.
Signed-off-by: Yong Tang yong.tang.github@outlook.com