[roll] Roll fuchsia [netcfg] Add NormalizedMac dyn NameCompositionRule

Extract the normalized mac calculation into a separate function to be
shared by both the new and existing implementation.

Reframe the name retry policy to allow for the NormalizedMac rule to be
modified and generate a potentially unique name with a different offset.
If all offsets are attempted (the value gets to 255), then we will
surface an error that a unique identifier could not be found.

Test: Ensure existing implementation, notably test_get_usb_255, passes.
Added equivalent test for new implementation and test for properly
unique last bytes.

Original-Bug: 135106
Original-Bug: 135087
Original-Bug: b/309010424
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/939913
Original-Revision: bb3e9e797940ec46e69daa1e62fa17e586984309
GitOrigin-RevId: c66e97607e086d420e352a92a1dc5952a5acaf80
Change-Id: I0bc89b0444df2ec3845843d753004d72127b20b8
1 file changed
tree: 189db42a6d8a72068b9a15a8c4836af050dc7fa0
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.