Skip to content

Commit

Permalink
Rename organization (redhat-best-practices-for-k8s#15)
Browse files Browse the repository at this point in the history
Also updated API
  • Loading branch information
edcdavid authored Aug 8, 2024
1 parent ff6bb1e commit ce51737
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
8 changes: 4 additions & 4 deletions basic.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
lib "github.com/test-network-function/graphsolver-lib"
l2lib "github.com/test-network-function/l2discovery-exports"
lib "github.com/redhat-best-practices-for-k8s/graphsolver-lib"
l2lib "github.com/redhat-best-practices-for-k8s/l2discovery-exports"
)

type testGraph struct {
Expand Down Expand Up @@ -40,8 +40,8 @@ func main() {
tagGrandmaster = 1
)

if1 := l2lib.PtpIf{IfClusterIndex: l2lib.IfClusterIndex{IfName: "ens3f0", NodeName: "node1"}, MacAddress: "52:55:00:81:c2:62", IfPci: l2lib.PCIAddress{Device: "00:03", Function: "0"}}
if2 := l2lib.PtpIf{IfClusterIndex: l2lib.IfClusterIndex{IfName: "ens3f0", NodeName: "node2"}, MacAddress: "52:55:00:81:c2:63", IfPci: l2lib.PCIAddress{Device: "00:03", Function: "0"}}
if1 := l2lib.PtpIf{IfClusterIndex: l2lib.IfClusterIndex{InterfaceName: "ens3f0", NodeName: "node1"}, Iface: l2lib.Iface{IfMac: l2lib.Mac{Data: "52:55:00:81:c2:62"}, IfPci: l2lib.PCIAddress{Device: "00:03", Function: "0"}}}
if2 := l2lib.PtpIf{IfClusterIndex: l2lib.IfClusterIndex{InterfaceName: "ens3f0", NodeName: "node2"}, Iface: l2lib.Iface{IfMac: l2lib.Mac{Data: "52:55:00:81:c2:63"}, IfPci: l2lib.PCIAddress{Device: "00:03", Function: "0"}}}
lans := [][]int{{0, 1}}
aGraph := testGraph{ifList: []*l2lib.PtpIf{&if1, &if2}, lans: &lans, ptpInterfaces: nil}

Expand Down
14 changes: 8 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
module github.com/test-network-function/graphsolver-minimal
module github.com/redhat-best-practices-for-k8s/graphsolver-minimal

go 1.21.3
go 1.22.5

toolchain go1.22.6

require (
github.com/test-network-function/graphsolver-lib v0.0.3
github.com/test-network-function/l2discovery-exports v0.0.3
github.com/redhat-best-practices-for-k8s/graphsolver-lib v0.0.4
github.com/redhat-best-practices-for-k8s/l2discovery-exports v0.0.4
)

require (
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/test-network-function/graphsolver-exports v0.0.1 // indirect
github.com/redhat-best-practices-for-k8s/graphsolver-exports v0.0.2 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
)
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/redhat-best-practices-for-k8s/graphsolver-exports v0.0.2 h1:SJnXD40jEFBCWT8ZjmJOFJdIzMwWPbrIUCAQu1oXfYQ=
github.com/redhat-best-practices-for-k8s/graphsolver-exports v0.0.2/go.mod h1:Vl268nAHQKEnIw7GIYehp3Lx4qYP8+rOlwGsWxD/aO4=
github.com/redhat-best-practices-for-k8s/graphsolver-lib v0.0.4 h1:541I5wcounFu3P/5YmWjrpNOH50KwalGKHBer41Tjj8=
github.com/redhat-best-practices-for-k8s/graphsolver-lib v0.0.4/go.mod h1:IK4i8ZBV16s/EVD+EpOrubdbSGqcryRV7eah0gcl5sg=
github.com/redhat-best-practices-for-k8s/l2discovery-exports v0.0.4 h1:66qE0Vj/8vWvt8yaVq1yJK5+OOELGZdlCwzHkXRxFr4=
github.com/redhat-best-practices-for-k8s/l2discovery-exports v0.0.4/go.mod h1:NO9mpaj5neVKarRGcsL5SHVFb+uYUoCC8uVbuT419xs=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/test-network-function/graphsolver-exports v0.0.1 h1:27zhW/1fiKf3+NJsevl+jvuJu9t/MqOs1wmAkcmp8ng=
github.com/test-network-function/graphsolver-exports v0.0.1/go.mod h1:Zo5bUPq3s1KWfz6MtMHzHQh1mSiW4DOpBbZ03TG2zIw=
github.com/test-network-function/graphsolver-lib v0.0.3 h1:4gdxyqfZBfWOfi7lJOV+ZhlCsELOoQvV9Ji6HoidXnY=
github.com/test-network-function/graphsolver-lib v0.0.3/go.mod h1:QfXYYotdpHkIaaSO+SPWyPDpt8SpeQWoiN9WnU5fmIE=
github.com/test-network-function/l2discovery-exports v0.0.3 h1:kuzpWu5UQL3VIG+8AkjmsghkjZN1X3k3dQ8M36DsJc4=
github.com/test-network-function/l2discovery-exports v0.0.3/go.mod h1:38JgpFHXB9PQ+4bPZQ+STsUKK9BrTe+5uDq47OeMV50=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down

0 comments on commit ce51737

Please sign in to comment.