HewlettPackard / HewlettPackard/PacketRusher
[BUG] CLI Error if --tunnel is used before --dedicatedGnb
- Dominant language
- Go
- Stars
- 193
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
If we use --tunnel is used before --dedicatedGnb (or -d) in the CLI, it throws an error.
For example, if we execute this
```
./packetrusher --config config.yml multi-ue -n 2 --tunnel true -d --tunnel-vrf false
```
we get:
```
FATA[0000] You cannot use the --tunnel option, without using the --dedicatedGnb option
```
**To Reproduce**
Steps to reproduce the behavior:
1. Execure `./packetrusher --config config.yml multi-ue -n 2 --tunnel true -d`
**Expected behavior**
The CLI executes normally.
**Architecture (please complete the following information):**
- OS: Debian
- Platform x86_64
- Version 12
- Kernel 6.1.0-17-amd64
Contributor guide
Research direction
Start by running the reported multi-ue command and tracing the CLI option parsing and validation for --tunnel and --dedicatedGnb. Confirm that placing --tunnel before --dedicatedGnb no longer produces the reported error, while invalid combinations still fail as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100