https://github.com/bitvantage/cisco.iosinterface
Parse Cisco IOS interface names, such as GigabitEthernet0/0, Gi1/0/1, HundredGigE10/0/1.37, Vlan33, etc.
https://github.com/bitvantage/cisco.iosinterface
Last synced: 6 months ago
JSON representation
Parse Cisco IOS interface names, such as GigabitEthernet0/0, Gi1/0/1, HundredGigE10/0/1.37, Vlan33, etc.
- Host: GitHub
- URL: https://github.com/bitvantage/cisco.iosinterface
- Owner: Bitvantage
- License: agpl-3.0
- Created: 2024-06-26T13:51:47.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-02T00:55:43.000Z (9 months ago)
- Last Synced: 2024-12-03T11:06:33.380Z (6 months ago)
- Language: C#
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Bitvantage.Cisco.IosInterface
Parse Cisco IOS interface names, such as GigabitEthernet0/0, Gi1/0/1, HundredGigE10/0/1.37, Vlan33, etc.## Installing via NuGet Package Manager
```
PM> NuGet\Install-Package Bitvantage.Cisco.IosInterface
```
## Quick Start```csharp
var iosInterface1 = IosInterface.Parse("GigabitEthernet0/0");
var iosInterface2 = IosInterface.Parse("Gi0/0");var iosInterface3 = IosInterface.Parse("Fa0/1");
var iosInterface4 = IosInterface.Parse("Fa0/0");var equal = iosInterface1 == iosInterface2; // true
var ordered = new[] { iosInterface1, iosInterface2, iosInterface3, iosInterface4 }.Order().Distinct(); // Fa0/0, Fa0/1, Gi0/0
```