-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
//TODO(karampok): what immutable field means in ffr-k8s Signed-off-by: karampok <[email protected]>
- Loading branch information
Showing
28 changed files
with
182 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,8 @@ func TestConversion(t *testing.T) { | |
ConnectTime: &metav1.Duration{ | ||
Duration: 2 * time.Second, | ||
}, | ||
DisableMP: true, | ||
DisableMP: true, | ||
EnableGracefulRestart: true, | ||
}, | ||
}, | ||
VRF: "", | ||
|
@@ -75,16 +76,17 @@ func TestConversion(t *testing.T) { | |
RouterID: "192.0.2.1", | ||
Neighbors: []*frr.NeighborConfig{ | ||
{ | ||
IPFamily: ipfamily.IPv4, | ||
Name: "[email protected]", | ||
ASN: 65002, | ||
Port: ptr.To[uint16](179), | ||
SrcAddr: "192.1.1.1", | ||
Addr: "192.0.2.2", | ||
KeepaliveTime: ptr.To[uint64](20), | ||
HoldTime: ptr.To[uint64](40), | ||
ConnectTime: ptr.To(uint64(2)), | ||
DisableMP: true, | ||
IPFamily: ipfamily.IPv4, | ||
Name: "[email protected]", | ||
ASN: 65002, | ||
Port: ptr.To[uint16](179), | ||
SrcAddr: "192.1.1.1", | ||
Addr: "192.0.2.2", | ||
KeepaliveTime: ptr.To[uint64](20), | ||
HoldTime: ptr.To[uint64](40), | ||
ConnectTime: ptr.To(uint64(2)), | ||
DisableMP: true, | ||
GracefulRestart: true, | ||
Outgoing: frr.AllowedOut{ | ||
PrefixesV4: []frr.OutgoingFilter{}, | ||
PrefixesV6: []frr.OutgoingFilter{}, | ||
|
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
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
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
54 changes: 54 additions & 0 deletions
54
internal/frr/testdata/TestSingleSessionWithGracefulRestart.golden
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,54 @@ | ||
log file /etc/frr/frr.log informational | ||
log timestamp precision 3 | ||
hostname dummyhostname | ||
ip nht resolve-via-default | ||
ipv6 nht resolve-via-default | ||
|
||
|
||
route-map 192.168.1.2-out permit 1 | ||
match ip address prefix-list 192.168.1.2-pl-ipv4 | ||
route-map 192.168.1.2-out permit 2 | ||
match ipv6 address prefix-list 192.168.1.2-pl-ipv4 | ||
|
||
|
||
|
||
ip prefix-list 192.168.1.2-pl-ipv4 seq 1 deny any | ||
ipv6 prefix-list 192.168.1.2-pl-ipv4 seq 2 deny any | ||
|
||
|
||
|
||
|
||
|
||
|
||
ip prefix-list 192.168.1.2-inpl-ipv4 seq 1 deny any | ||
|
||
ipv6 prefix-list 192.168.1.2-inpl-ipv4 seq 2 deny any | ||
route-map 192.168.1.2-in permit 3 | ||
match ip address prefix-list 192.168.1.2-inpl-ipv4 | ||
route-map 192.168.1.2-in permit 4 | ||
match ipv6 address prefix-list 192.168.1.2-inpl-ipv4 | ||
|
||
router bgp 65000 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
no bgp default ipv4-unicast | ||
bgp graceful-restart preserve-fw-state | ||
|
||
neighbor 192.168.1.2 remote-as 65001 | ||
|
||
|
||
|
||
|
||
neighbor 192.168.1.2 graceful-restart | ||
|
||
address-family ipv4 unicast | ||
neighbor 192.168.1.2 activate | ||
neighbor 192.168.1.2 route-map 192.168.1.2-in in | ||
neighbor 192.168.1.2 route-map 192.168.1.2-out out | ||
exit-address-family | ||
address-family ipv6 unicast | ||
neighbor 192.168.1.2 activate | ||
neighbor 192.168.1.2 route-map 192.168.1.2-in in | ||
neighbor 192.168.1.2 route-map 192.168.1.2-out out | ||
exit-address-family | ||
|
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
Oops, something went wrong.