-
Notifications
You must be signed in to change notification settings - Fork 28
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
vendor specific routes #31
Comments
Without more information, I cannot tell also. Need sourcecode snapshot, returned error exceptions and relevant server config parts |
This is most propably an issue of used datatypes. For example DHCP Option Definitions are: option new-static-routes code 249 = string; My guess would be that you need to match the types. |
so I think it is a problem with the format... stmts.append('supersede classless-static-routes {0};'.format(static_routes)) and static_routes contains "16.11.11 10.10.10.1" I think somehow for the regular "classless-static-routes" works as that expects a string but when trying to append a "ms-classless-static-routes" then string is not valid... so the following line does not add anything: |
the DHCP has the option: how do I get the data type matching? |
Hi, c_ms_route = "16,10,25,10,15,15,1" and we append it to omapi message like: stmts.append('supersede ms-classless-static-routes {0};'.format(c_ms_route)) then, the result in dhcpd lease file is:
How can we format our variable so that it would look "better" in the lease file? |
ms-classless-static-routes is expecting an array of bytes (array of integer 8). So my guess is you would need to convert your routes accordingly. See pack_ip for example for using that on a full ip address. You might need to adapt that function for sizes different than 4 and your list of c_ms_route to be split by comma.
in the lease file. |
I see that the pack_ip function returns something like: |
I can add classless static routes but not vendor specific ones like "ms-classless-static-routes".
Not sure if it is not supported or I'm not able to find a way to make it work.
The text was updated successfully, but these errors were encountered: