Skip to content

Commit

Permalink
Add OC AFT model 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dplore committed Sep 25, 2024
1 parent 8d7654d commit 0068c73
Show file tree
Hide file tree
Showing 23 changed files with 4,854 additions and 748 deletions.
14 changes: 14 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# How to rebuild the gribi protos

## Install dependencies

* brew install coreutils
* http://github.com/openconfig/ygot for proto_generator
* build ygot proto_generator

## Update aft yang

* Add deviations as needed to gribi-aft.yang
* Run update_schema.sh
* Run generate_proto.sh
* Run check-updated.sh to review for any unexpected changes
Binary file added scripts/proto_generator
Binary file not shown.
4 changes: 3 additions & 1 deletion scripts/update-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# Hack to ensure that if we are running on OS X with a homebrew installed
# GNU sed then we can still run sed.

runsed() {
if hash gsed 2>/dev/null; then
gsed "$@"
Expand All @@ -38,7 +39,8 @@ if [ -z $SRCDIR ]; then
SRC_DIR=`runreadlink -m ${THIS_DIR}/..`
fi

proto_generator \
echo ${SRC_DIR}
./proto_generator \
-path=${SRC_DIR}/v1/yang,${SRC_DIR}/v1/yang/deps \
-output_dir=${SRC_DIR}/v1/proto -compress_paths -generate_fakeroot -fakeroot_name=device \
-package_name=gribi_aft -exclude_modules=ietf-interfaces,openconfig-interfaces \
Expand Down
216 changes: 157 additions & 59 deletions v1/proto/gribi_aft/enums/enums.pb.go

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions v1/proto/gribi_aft/enums/enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ enum OpenconfigMplsTypesMplsLabelEnum {
OPENCONFIGMPLSTYPESMPLSLABELENUM_NO_LABEL = 9 [(yext.yang_name) = "NO_LABEL"];
}

// OpenconfigMplsTypesMplsLabelStackEnum represents an enumerated type generated for the YANG enumerated type mpls-label-stack.
enum OpenconfigMplsTypesMplsLabelStackEnum {
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_UNSET = 0;
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_IPV4_EXPLICIT_NULL = 1 [(yext.yang_name) = "IPV4_EXPLICIT_NULL"];
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_ROUTER_ALERT = 2 [(yext.yang_name) = "ROUTER_ALERT"];
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_IPV6_EXPLICIT_NULL = 3 [(yext.yang_name) = "IPV6_EXPLICIT_NULL"];
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_IMPLICIT_NULL = 4 [(yext.yang_name) = "IMPLICIT_NULL"];
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_ENTROPY_LABEL_INDICATOR = 8 [(yext.yang_name) = "ENTROPY_LABEL_INDICATOR"];
OPENCONFIGMPLSTYPESMPLSLABELSTACKENUM_NO_LABEL = 9 [(yext.yang_name) = "NO_LABEL"];
}

// OpenconfigPacketMatchTypesIPPROTOCOL represents an enumerated type generated for the YANG identity IP_PROTOCOL.
enum OpenconfigPacketMatchTypesIPPROTOCOL {
OPENCONFIGPACKETMATCHTYPESIPPROTOCOL_UNSET = 0;
Expand Down
Loading

0 comments on commit 0068c73

Please sign in to comment.