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

Antrea CLI to dump applied-to groups, address groups and translated network policies #239

Closed
vicky-liu opened this issue Dec 17, 2019 · 0 comments · Fixed by #356
Closed
Assignees
Labels
area/api Issues or PRs related to an API. area/component/antctl Issues or PRs releated to the command line interface component area/component/controller Issues or PRs related to the controller component enhancement New feature or request kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@vicky-liu
Copy link

Antrea controller translates the upstream network policies into internal data models, e.g. applied-to groups, adress groups and internal network policies. The CLIs to dump those data on both controller and node agents will help the trouble shooting and debugging.
The CLIs look like:
antctl get address-groups
antctl get apt-groups
antctl get network-policies

@vicky-liu vicky-liu added the enhancement New feature or request label Dec 17, 2019
@vicky-liu vicky-liu self-assigned this Dec 17, 2019
@McCodeman McCodeman added area/api Issues or PRs related to an API. area/component/antctl Issues or PRs releated to the command line interface component area/component/controller Issues or PRs related to the controller component kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Feb 12, 2020
weiqiangt added a commit that referenced this issue Mar 4, 2020
- Set up an API server on antrea agent
- The antctl client is consuming the API server in antrea agent,
  instead of using the specific antctl server
- Added API /networkpolicies, /appliedtogroups, /addressgroups,
  /agentinfo and /version APIs to the agent API server
- Added `get network-policy`, `get address-group` and `get applied-to-group`
  commands for both controller and agent
- Make GetVersion in version.go returning a semantic version object

Resolves #239.
Signed-off-by: Weiqiang TANG <weiqiangt@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Issues or PRs related to an API. area/component/antctl Issues or PRs releated to the command line interface component area/component/controller Issues or PRs related to the controller component enhancement New feature or request kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants