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

T6936: PPPoE-server add option combined to interface #4247

Open
wants to merge 1 commit into
base: current
Choose a base branch
from

Conversation

sever-sever
Copy link
Member

@sever-sever sever-sever commented Dec 20, 2024

Change Summary

Add option combined;
it allows listening to PPP requests on both VLANs and the base parent interface (without tag)

Before, it was impossible to do it from our CLI

set service pppoe-server interface eth1 combined
set service pppoe-server interface eth1 vlan '10-122'

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): New feature that fixes bug

Related Task(s)

Related PR(s)

Component(s) name

pppoe-server

Proposed changes

How to test

Add configuration and be surprised that the parent interface (without tags) does not listen to PPP requests

set interfaces ethernet eth1 vif 500
set service pppoe-server access-concentrator 'ACN'
set service pppoe-server authentication mode 'radius'
set service pppoe-server authentication radius server 127.0.0.1 key 'xxx'
set service pppoe-server client-ip-pool FIRST range '100.64.0.0/24'
set service pppoe-server gateway-address '100.64.0.1'
set service pppoe-server interface eth1 vlan '10-122'
set service pppoe-server interface eth1 vlan-mon
set service pppoe-server interface eth1.500
commit


vyos@r14# run show pppoe-server interfaces 
 interface:   connections:    state:
-----------------------------------
 eth1.500              0    active
[edit]
vyos@r14# 

Add the combined option, expected listen to eth0 and eth1.500 + VLAN range:

vyos@r14# set service pppoe-server interface eth1 combined 
[edit]
vyos@r14# commit
[edit]
vyos@r14# 
[edit]
vyos@r14# run show pppoe-server interfaces 
 interface:   connections:    state:
-----------------------------------
     eth1              0    active
 eth1.500              0    active
[edit]
vyos@r14# 

vyos@r14# cat /run/accel-pppd/pppoe.conf | grep interface
interface=re:^eth1\.(1\d|[2-9]\d|1[0-1]\d|12[0-2])$
interface=eth1
interface=eth1.500
[edit]
vyos@r14# 

Smoketest result

vyos@r14:~$ /usr/libexec/vyos/tests/smoke/cli/test_service_pppoe-server.py
test_accel_ipv4_pool (__main__.TestServicePPPoEServer.test_accel_ipv4_pool) ... ok
test_accel_ipv6_pool (__main__.TestServicePPPoEServer.test_accel_ipv6_pool) ... ok
test_accel_limits (__main__.TestServicePPPoEServer.test_accel_limits) ... ok
test_accel_local_authentication (__main__.TestServicePPPoEServer.test_accel_local_authentication) ... ok
test_accel_log_level (__main__.TestServicePPPoEServer.test_accel_log_level) ... ok
test_accel_name_servers (__main__.TestServicePPPoEServer.test_accel_name_servers) ... ok
test_accel_next_pool (__main__.TestServicePPPoEServer.test_accel_next_pool) ... ok
test_accel_ppp_options (__main__.TestServicePPPoEServer.test_accel_ppp_options) ... ok
test_accel_radius_authentication (__main__.TestServicePPPoEServer.test_accel_radius_authentication) ... ok
test_accel_shaper (__main__.TestServicePPPoEServer.test_accel_shaper) ... ok
test_accel_snmp (__main__.TestServicePPPoEServer.test_accel_snmp) ... ok
test_accel_wins_server (__main__.TestServicePPPoEServer.test_accel_wins_server) ... ok
test_pppoe_limits (__main__.TestServicePPPoEServer.test_pppoe_limits) ... ok
test_pppoe_server_accept_service (__main__.TestServicePPPoEServer.test_pppoe_server_accept_service) ... ok
test_pppoe_server_any_login (__main__.TestServicePPPoEServer.test_pppoe_server_any_login) ... ok
test_pppoe_server_authentication_protocols (__main__.TestServicePPPoEServer.test_pppoe_server_authentication_protocols) ... ok
test_pppoe_server_pado_delay (__main__.TestServicePPPoEServer.test_pppoe_server_pado_delay) ... ok
test_pppoe_server_shaper (__main__.TestServicePPPoEServer.test_pppoe_server_shaper) ... ok
test_pppoe_server_vlan (__main__.TestServicePPPoEServer.test_pppoe_server_vlan) ... ok

----------------------------------------------------------------------
Ran 19 tests in 132.395s

OK
vyos@r14:~$ 

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

Add option 'combined', it allows to listen to PPP requests on
both VLANs and the base parent interface (wihtout tag)

Before it was impossible to do it from our CLI

set service pppoe-server interface eth1 combined
set service pppoe-server interface eth1 vlan '10-122'
Copy link

github-actions bot commented Dec 20, 2024

👍
No issues in PR Title / Commit Title

Copy link

CI integration ❌ failed!

Details

CI logs

  • CLI Smoketests (no interfaces) ❌ failed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants