Add support for '/interface pppoe-server server' path (#273)

* Add support for '/interface pppoe-server server' path

* Fixed one-session-per-host default value

* Add changelogs/fragments/273-add_interface_pppoe-server_support.yml
This commit is contained in:
samburney 2024-04-18 06:59:57 +09:30 committed by GitHub
parent 59f6591621
commit 62a795f995
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 0 deletions

View file

@ -1497,6 +1497,28 @@ PATHS = {
},
),
),
('interface', 'pppoe-server', 'server'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('interface', ),
fields={
'accept-empty-service': KeyInfo(default=True),
'authentication': KeyInfo(default='pap,chap,mschap1,mschap2'),
'comment': KeyInfo(can_disable=True, remove_value=''),
'default-profile': KeyInfo(default='default'),
'disabled': KeyInfo(default=True),
'interface': KeyInfo(required=True),
'keepalive-timeout': KeyInfo(default=10),
'max-mru': KeyInfo(default='auto'),
'max-mtu': KeyInfo(default='auto'),
'max-sessions': KeyInfo(default='unlimited'),
'mrru': KeyInfo(default='disabled'),
'one-session-per-host': KeyInfo(default=False),
'pado-delay': KeyInfo(default=0),
'service-name': KeyInfo(default=''),
},
),
),
('interface', 'pptp-server', 'server'): APIData(
unversioned=VersionedAPIData(
single_value=True,