Page MenuHomeVyOS Platform

vyatta-cfg-dhcp-serverProject
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers

  • This project does not have any watchers.
  • View All

Details

Description

Vyatta DHCP server configuration mechanism

Recent Activity

Tue, Mar 19

jestabro added a comment to T6103: DHCP-server bootfile-name double slash syntax weird behaviour.

The fix for values containing single backslashes has been merged for 1.5 in
https://github.com/vyos/vyos1x-config/pull/23
https://github.com/vyos/vyos-1x/pull/3035

Tue, Mar 19, 2:01 PM · vyatta-cfg-dhcp-server

Wed, Mar 6

Viacheslav added a parent task for T6103: DHCP-server bootfile-name double slash syntax weird behaviour: T5996: unescape backslashes for config save, compare commands.
Wed, Mar 6, 1:08 PM · vyatta-cfg-dhcp-server
Viacheslav changed the status of T6103: DHCP-server bootfile-name double slash syntax weird behaviour from Open to Known issue.
Wed, Mar 6, 1:06 PM · vyatta-cfg-dhcp-server
Viacheslav triaged T6103: DHCP-server bootfile-name double slash syntax weird behaviour as Normal priority.
Wed, Mar 6, 1:06 PM · vyatta-cfg-dhcp-server
Viacheslav added a comment to T6103: DHCP-server bootfile-name double slash syntax weird behaviour.

There is the task for the bug with "backslashes" T5996

Wed, Mar 6, 1:06 PM · vyatta-cfg-dhcp-server
dutty added a comment to T6103: DHCP-server bootfile-name double slash syntax weird behaviour.

Yes, boot\x86\wdsnbp.com is a proper filename, and this further correctly translates to double backslash in the dhcp.conf file at /run/dhcp-server/dhcpd.conf, as I noted. Why it is so, explained for example here: https://www.linkedin.com/pulse/quit-thinking-look-matthew-topper
And with such a setting network boot works just fine.
The problem is that after each reboot the vyos configuration scripts, I guess, double the number of backslashes in the config, that further leads to doubling them in the dhcp.conf. And on, and on. This actually breaks the network boot, and manual intervention is required after each router reboot.

Wed, Mar 6, 11:29 AM · vyatta-cfg-dhcp-server
Apachez added a comment to T6103: DHCP-server bootfile-name double slash syntax weird behaviour.

Is "\" really a valid path for bootfile?

Wed, Mar 6, 11:07 AM · vyatta-cfg-dhcp-server
dutty created T6103: DHCP-server bootfile-name double slash syntax weird behaviour.
Wed, Mar 6, 10:33 AM · vyatta-cfg-dhcp-server

Jan 21 2021

Dickins created T3237: DHCP Server Static-Mapping Validation Error.
Jan 21 2021, 4:32 PM · VyOS 1.2 Crux (VyOS 1.2.7)

Feb 7 2020

c-po added a comment to T2018: How to configure DHCP servers option with quotes?.

@hexes that's why there is a big banner on top indicating this page is outdated and links you to the new docs.

Feb 7 2020, 6:14 PM · vyatta-cfg-dhcp-server
hexes added a comment to T2018: How to configure DHCP servers option with quotes?.

(It's possible to spy decision on Ubnt, this issue solved there, in attach:)


Feb 7 2020, 5:38 AM · vyatta-cfg-dhcp-server
hexes added a comment to T2018: How to configure DHCP servers option with quotes?.

c-po, thanks a lot, didn't see this trick... There is too much different docs. We need to combine in one place. Here is nothing about quotes... :-( https://wiki.vyos.net/wiki/DHCP_server

Feb 7 2020, 4:14 AM · vyatta-cfg-dhcp-server

Feb 6 2020

c-po added a comment to T2018: How to configure DHCP servers option with quotes?.

Maybe there will be a better option one day. Right now we only have https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/dhcp_server.py#L816

Feb 6 2020, 7:22 PM · vyatta-cfg-dhcp-server
c-po closed T2018: How to configure DHCP servers option with quotes? as Wontfix.
Feb 6 2020, 7:22 PM · vyatta-cfg-dhcp-server
c-po added a comment to T2018: How to configure DHCP servers option with quotes?.

For the time being please see the instructions at https://docs.vyos.io/en/latest/services/dhcp.html#dhcp-server about the pre and post usage of "

Feb 6 2020, 7:20 PM · vyatta-cfg-dhcp-server
hexes created T2018: How to configure DHCP servers option with quotes?.
Feb 6 2020, 7:47 AM · vyatta-cfg-dhcp-server

Dec 21 2019

jjakob changed the status of T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters from Open to In progress.

Added explanation on how to use quotes inside raw parameters to the docs.
https://github.com/vyos/vyos-documentation/pull/163

Dec 21 2019, 11:54 AM · Restricted Project

Dec 20 2019

c-po assigned T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters to jjakob.
Dec 20 2019, 9:54 AM · Restricted Project

Dec 15 2019

jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

This was discussed previously: https://phabricator.vyos.net/T1129
Use """ which will be replaced with quotes when generating the isc dhcpd config.
https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/dhcp_server.py#L813-L815

Dec 15 2019, 3:45 PM · Restricted Project

Dec 13 2019

elbandi added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

Yepp, the issue is the quotes in dhcp server config (like the sample line i wrote).
i think, duplicates functionality doesnt matter, there are already such duplications: global-parameters, subnet-parameters, etc. That are for raw settings, if someone want a magic things in dhcp. But adding normal options to static-mapping-parameters are just a workaround.

Dec 13 2019, 11:32 AM · Restricted Project
jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

Sorry, I misunderstood your issue, indeed adding quotes inside the parameters is not possible now. A reimplementation would be needed.

Dec 13 2019, 8:17 AM · Restricted Project

Dec 12 2019

jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

The current static-mapping-parameters can be used to add a quoted value, e.g.

static-mapping test {
                    ip-address x.x.x.x
                    mac-address yy:yy:yy:yy:yy:yy
                    static-mapping-parameters "option domain-name-servers 1.1.1.1, 9.9.9.9;"
                }

command

set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option domain-name-servers 192.0.2.11, 192.0.2.12;"
Dec 12 2019, 9:15 PM · Restricted Project

Nov 14 2019

elbandi created T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.
Nov 14 2019, 2:48 PM · Restricted Project

Feb 27 2019

varesa added a comment to T1270: DHCP Server on VIF interfaces.

e.g. could indeed be tested to make sure that it works

Feb 27 2019, 9:59 AM · Rejected
varesa added a comment to T1270: DHCP Server on VIF interfaces.

I think the issue you found might still be a valid one, even though it was not the same one that was originally talked about on IRC.

Feb 27 2019, 9:58 AM · Rejected
tmartinson closed T1270: DHCP Server on VIF interfaces as Resolved.

Needs more testing. I might have been testing the wrong thing. :(

Feb 27 2019, 9:49 AM · Rejected
tmartinson created T1270: DHCP Server on VIF interfaces.
Feb 27 2019, 9:31 AM · Rejected

Jul 24 2017

syncer created vyatta-cfg-dhcp-server.
Jul 24 2017, 8:57 PM