-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add custom-phys-address for interfaces #680
Milestone
Comments
troglobit
added
feature
Feature request
triage
Pending investigation & classification (CCB)
labels
Oct 2, 2024
troglobit
changed the title
Add phys-address format specifiers for base mac
Add custom-phys-address for interfaces
Oct 2, 2024
troglobit
added a commit
that referenced
this issue
Oct 9, 2024
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 9, 2024
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 9, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
Merged
13 tasks
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 10, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
troglobit
added a commit
that referenced
this issue
Oct 11, 2024
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In some use-cases it would be useful to be able to infer using the base MAC (chassis MAC) address on an interface, e.g., VETH pairs or layer-2 tunnel interfaces.
This issue details a proposal to extend the ietf-interfaces.yang model with options to tweak and override the defaults.
Furthermore, in an effort (very small) to reduce the deviations, we propose reverting the
config true;
change forietf-interfaces:phys-address
and fold that support as well into this new syntax.YANG Model
Example
Base MAC address of the device, sometimes referred to Chassis MAC, is read from VPD and parsed by
probe
at boot into/run/system.json
. In this example the Base MAC is00:53:00:c0:ff:ee
.1) Fixed custom
2) Use Chassis MAC
3) Use Chassis MAC, with local bit
4) Use Chassis MAC, with offset
5) Use Chassis MAC, with offset and local bit
Additional Information
A previous proposal used format specifiers, which exist today in an extension to ietf-system.yang, for
hostname
. That proposal was scrapped in favor of this current one, which is a more YANG friendly alternative.General Information
Anyone can help out by sponsoring development of new features or contributing pull requests.
Please use this issue for discussions related to the feature.
The text was updated successfully, but these errors were encountered: