openconfig / gribi

A gRPC Interface to a Network Element RIB.
Apache License 2.0
57 stars 14 forks source link

Update YANG: remove patches. #63

Closed robshakir closed 2 years ago

robshakir commented 2 years ago
commit 204a9d9e37be04aa6b068ac9c050acdaa153ec9d
Author: Rob Shakir <robjs@google.com>
Date:   Fri Jun 17 13:04:10 2022 -0700

    Update to latest version of AFT yang.

     * (M) scripts/update-schema.sh
      - Remove patches being applied to files, since references have
        been moved to a network-instance specific module these are now
        augmented in gribi-aft.yang
     * (M) v1/proto/gribi_aft/...
      - Re-generate protobuf and generated files
     * (M) v1/yang/{aft,deps}
      - Update dependencies and vendored modules.
     * (D) v1/yang/patches/...
      - Remove patches per comment above.

The patches in this repo have been merged upstream in the openconfig/public models such that they are not required.

At the same time the AFT model has been made to not reference /network-instances without requiring the openconfig-aft-network-instance.yang module. This means that some leaves need to be directly augmented by gribi-aft.yang, previously patches took each leafref and rewrote it to the underlying type, which is no longer required. gribi-aft augments the leaves in with the expected type for gRIBI.