intel / intel/rohd-bridge

`pullUpInterface`'s `portUniquify` should provide `null` physical port instead of throw exceptions when non-single port mapping exists

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Dart
Stars
13
Forks
5
Avg merge
19h 29m
Merged PRs (30d)
7

Description

### Motivation

Currently, if there are 0 or >1 logical ports mapped to an interface, then the `portUniquify` function can't be called since it only works with exactly 1 physical port present. This is annoying if there are multiple physical ports or no physical ports mapped to at least one logical port, but you don't need to use the physical name for uniquification.

### Desired solution

Rather than throwing an exception, it would be nice to just make the function signature provide `null` for cases where there isn't exactly one physical port mapping. Then logical uniquification can still be done.

### Alternatives considered

_No response_

### Additional details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.