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

Add support for MPLS entries in ResolvedEntryFn #190

Merged
merged 5 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 12 additions & 0 deletions constants/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,20 @@ const (
NextHop
// NextHopGroup specifies the next-hop-group AFT.
NextHopGroup
// MPLS specifies the label-entry/MPLS AFT.
MPLS
)

func (a AFT) String() string {
return map[AFT]string{
All: "ALL",
IPv4: "IPv4",
NextHop: "NextHop",
NextHopGroup: "NextHopGroup",
MPLS: "MPLS",
}[a]
}

// aftMap maps between an AFT enumerated type and the specified type in the
// gRIBI protobuf.
var aftMap = map[AFT]spb.AFTType{
Expand Down
52 changes: 27 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ module github.com/openconfig/gribigo
go 1.20

require (
github.com/golang/glog v1.1.0
github.com/golang/glog v1.1.2
github.com/google/go-cmp v0.5.9
github.com/google/uuid v1.3.0
github.com/openconfig/gnmi v0.9.1
github.com/openconfig/goyang v1.2.0
github.com/openconfig/gnmi v0.10.0
github.com/openconfig/goyang v1.4.1
github.com/openconfig/gribi v1.0.0
github.com/openconfig/lemming v0.1.1-0.20230308220711-b6e3c59e71a1
github.com/openconfig/testt v0.0.0-20220311054427-efbb1a32ec07
github.com/openconfig/ygot v0.27.0
github.com/openconfig/ygot v0.29.10
go.uber.org/atomic v1.10.0
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.30.0
lukechampine.com/uint128 v1.1.1
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5
google.golang.org/grpc v1.58.0-dev
google.golang.org/protobuf v1.31.0
lukechampine.com/uint128 v1.2.0
)

require (
Expand All @@ -34,29 +33,32 @@ require (
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/openconfig/gnoi v0.0.0-20230221223856-1727ed932554 // indirect
github.com/openconfig/gnsi v0.0.0-20221208171320-0b0fb2f32f67 // indirect
github.com/openconfig/gnoi v0.1.0 // indirect
github.com/openconfig/gnsi v1.2.2 // indirect
github.com/openconfig/gocloser v0.0.0-20220310182203-c6c950ed3b0b // indirect
github.com/openconfig/ygnmi v0.7.7 // indirect
github.com/p4lang/p4runtime v1.3.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.7 // indirect
github.com/openconfig/lemming v0.3.2-0.20230901214817-e03a3e5bdcd3 // indirect
github.com/openconfig/ygnmi v0.8.7 // indirect
github.com/osrg/gobgp/v3 v3.14.0 // indirect
github.com/p4lang/p4runtime v1.4.0-rc.5.0.20220728214547-13f0d02a521e // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.6.1 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.15.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5 // indirect
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect
github.com/wenovus/gobgp/v3 v3.0.0-20221024234659-8df3c6938ab7 // indirect
golang.org/x/exp v0.0.0-20221106115401-f9659909a136 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
github.com/spf13/viper v1.16.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/vishvananda/netlink v1.2.1-beta.2 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/wenovus/gobgp/v3 v3.0.0-20230831013712-6d33842cbf42 // indirect
golang.org/x/exp v0.0.0-20230801115018-d63ba01acd4b // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.90.1 // indirect
Expand Down
Loading