Skip to content

Commit

Permalink
Add licenses and fix readme (openconfig#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankur19 authored Dec 12, 2023
1 parent cb6f96b commit 5d59959
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## Summary

Validate IPv4 support in gRIBI using an Aggregate Port as a static route Next Hop.
Validate IPv4 support in gRIBI using an Aggregate Port as a static route Next
Hop.

## Procedure

Expand All @@ -17,26 +18,34 @@ Validate IPv4 support in gRIBI using an Aggregate Port as a static route Next Ho

* Single IPv4Entry -> NHG -> NH with MAC Override.

* Install 198.51.100.0/24 to NextHopGroup containing one NextHop which
is a static route to the ATE LAG port containing ports 2-3, and
override the destination MAC to a specified value.

* Forward packets between ATE port-1 and ATE LAG (destined to
198.51.100.0/24 i.e. packets with destination IP starting
198.51.100.1 up to 198.51.100.255) and determine that packets are
forwarded successfully.

* Disable ATE port-2 and forward packets between ATE port-1 and ATE
LAG (destined to 198.51.100.0/24 ) and determine that packets are
forwarded successfully.

* Disable ATE port-2 and port-3 and forward packets between ATE port-1
and ATE LAG (destined to 198.51.100.0/24 ) and determine that
packets are lost 100%.

* Re-enable both ATE port-2 and port-3 and forward packets between ATE
port-1 and ATE LAG (destined to 198.51.100.0/24 ) and determine that
packets are forwarded successfully again.
* Configure a static ARP entry for the LAG interface pointing the
synthetic IP 192.0.2.22 to the neighbor's MAC address
02:00:00:00:00:01.
* Configure a static route matching 192.0.2.22/32 to the interface ref
of the LAG.
* The gRIBI NH entry uses 192.0.2.22 to select the LAG as the egress
interface.

* Install 198.51.100.0/24 to NextHopGroup containing one NextHop which is
a static route to the ATE LAG port containing ports 2-3, and override
the destination MAC to a specified value.

* Forward packets between ATE port-1 and ATE LAG (destined to
198.51.100.0/24 i.e. packets with destination IP starting 198.51.100.1
up to 198.51.100.255) and determine that packets are forwarded
successfully.

* Disable ATE port-2 and forward packets between ATE port-1 and ATE LAG
(destined to 198.51.100.0/24 ) and determine that packets are forwarded
successfully.

* Disable ATE port-2 and port-3 and forward packets between ATE port-1 and
ATE LAG (destined to 198.51.100.0/24 ) and determine that packets are
lost 100%.

* Re-enable both ATE port-2 and port-3 and forward packets between ATE
port-1 and ATE LAG (destined to 198.51.100.0/24 ) and determine that
packets are forwarded successfully again.

## Config Parameter coverage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package ipv4_entry_with_aggregate_ports_test

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package utilization_test

import (
Expand Down

0 comments on commit 5d59959

Please sign in to comment.