Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to OC v5.0.0 #503

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading