-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FRR: Parse IPv6 BGP neighbors (#6587)
- Loading branch information
Showing
8 changed files
with
279 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
projects/batfish/src/main/java/org/batfish/representation/cumulus/BgpIpv6Neighbor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.batfish.representation.cumulus; | ||
|
||
import javax.annotation.Nonnull; | ||
import org.batfish.datamodel.Ip6; | ||
|
||
/** BGP neighbor identified by an IPv4 peer address */ | ||
public class BgpIpv6Neighbor extends BgpNeighbor { | ||
private final @Nonnull Ip6 _peerIp; | ||
|
||
public BgpIpv6Neighbor(String name, Ip6 ip6) { | ||
super(name); | ||
_peerIp = ip6; | ||
} | ||
|
||
public @Nonnull Ip6 getPeerIp() { | ||
return _peerIp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.