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

op-mode: T4179: Add op-mode CLI show virtual-server #1164

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

sever-sever
Copy link
Member

Change Summary

Add CLI for op mode "show virtual-server"

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Component(s) name

high-availability

Proposed changes

How to test

Configure virtual-server and show virtual-server:

vyos@r11-roll:~$ show virtual-server 
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  203.0.113.111:2222 lc persistent 600
  -> 192.0.2.11:22                Masq    1      0          0         
  -> 192.0.2.12:22                Masq    1      0          0         
TCP  203.0.113.112:2233 lc persistent 600
  -> 192.0.2.12:22                Masq    1      0          0

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link
Member

@dmbaturin dmbaturin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, other than a couple of spelling corrections.

src/op_mode/show_virtual_server.py Outdated Show resolved Hide resolved
op-mode-definitions/show-virtual-server.xml.in Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants