Skip to content

Commit

Permalink
Auto-detect AT&T fiber SFP
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed Feb 20, 2022
1 parent 0b61bef commit 6bc16b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>

<!-- Make the assembly, file, and NuGet package versions the same. -->
<Version>1.1.2</Version>
<Version>1.1.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
Expand Down
7 changes: 7 additions & 0 deletions src/WirePeep.Common/DefaultProfile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,11 @@
<Address>10.1.0.1</Address>
</Find>
</PeerGroup>

<PeerGroup Name="Local SFP" FailSeconds="4" PollSeconds="2" WaitMilliseconds="50">
<Find Name="Fiber SFP" Type="Transceiver">
<!-- Default IP for AT&T BGW320-500. -->
<Address>192.168.1.254</Address>
</Find>
</PeerGroup>
</Defaults>
1 change: 1 addition & 0 deletions src/WirePeep.Common/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void AddLocation(Location location)
break;

case "CableModem":
case "Transceiver":
using (Pinger pinger = new(group.Wait))
{
address = findElement.Elements("Address").Select(e => IPAddress.Parse(e.Value)).FirstOrDefault(a => pinger.TryPing(a) ?? false);
Expand Down

0 comments on commit 6bc16b1

Please sign in to comment.