Skip to content

Commit

Permalink
Update to OC v5.0.0 (#503)
Browse files Browse the repository at this point in the history
* Update to OC v5.0.0

* fix
  • Loading branch information
DanG100 authored Dec 5, 2024
1 parent 18fc679 commit 271c51e
Show file tree
Hide file tree
Showing 127 changed files with 207,161 additions and 184,618 deletions.
7 changes: 3 additions & 4 deletions bgp/ocgobgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ import (
"strings"

log "github.com/golang/glog"
"github.com/openconfig/lemming/gnmi/oc"
"github.com/openconfig/lemming/internal/lemmingutil"
api "github.com/osrg/gobgp/v3/api"
gobgpoc "github.com/osrg/gobgp/v3/pkg/config/oc"

"github.com/openconfig/lemming/gnmi/oc"
"github.com/openconfig/lemming/internal/lemmingutil"
)

// convertPolicyName converts from OC policy name to a neighbour-qualified
Expand Down Expand Up @@ -344,8 +345,6 @@ func convertMED(med oc.RoutingPolicy_PolicyDefinition_Statement_Actions_BgpActio
return "", nil
}
switch c := med.(type) {
case oc.UnionString:
return string(c), nil
case oc.UnionUint32:
return strconv.FormatUint(uint64(c), 10), nil
case oc.E_BgpPolicy_BgpSetMedType_Enum:
Expand Down
1 change: 1 addition & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
set -e

git clone https://github.com/openconfig/public.git
cd public && git checkout v5.0.0 && cd ..

EXCLUDE_MODULES=ietf-interfaces,openconfig-bfd,openconfig-messages

Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-3.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-4.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-5.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-6.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-7.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-3.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-4.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-5.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-6.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/bgpgue/bgpgue-7.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package bgpgue is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-3.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-4.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-5.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-6.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-7.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.19)
using the following YANG input files:
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
Expand Down
Loading

0 comments on commit 271c51e

Please sign in to comment.