Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit e192293

Browse files
authored
Use galactic-common (#15)
1 parent e785021 commit e192293

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

go.mod

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
module github.com/datum-cloud/galactic-agent
22

3-
go 1.24
3+
go 1.24.9
44

55
require (
6+
github.com/datum-cloud/galactic-common v0.0.0-20251028162316-06f70d39f8ed
67
github.com/eclipse/paho.mqtt.golang v1.5.0
8+
github.com/kenshaw/baseconv v0.1.1
79
github.com/spf13/cobra v1.9.1
810
github.com/spf13/viper v1.20.1
11+
github.com/vishvananda/netlink v1.3.2-0.20250622222046-78aca1ace529
912
golang.org/x/sync v0.14.0
1013
google.golang.org/grpc v1.74.2
1114
google.golang.org/protobuf v1.36.6
1215
)
1316

1417
require (
1518
github.com/BurntSushi/toml v1.1.0 // indirect
16-
github.com/containernetworking/cni v1.3.0 // indirect
17-
github.com/coreos/go-iptables v0.8.0 // indirect
18-
github.com/datum-cloud/galactic v0.0.3 // indirect
1919
github.com/fsnotify/fsnotify v1.8.0 // indirect
2020
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
2121
github.com/gorilla/websocket v1.5.3 // indirect
2222
github.com/inconshreveable/mousetrap v1.1.0 // indirect
23-
github.com/kenshaw/baseconv v0.1.1 // indirect
2423
github.com/lorenzosaino/go-sysctl v0.3.1 // indirect
2524
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
2625
github.com/sagikazarmark/locafero v0.7.0 // indirect
@@ -29,7 +28,6 @@ require (
2928
github.com/spf13/cast v1.7.1 // indirect
3029
github.com/spf13/pflag v1.0.6 // indirect
3130
github.com/subosito/gotenv v1.6.0 // indirect
32-
github.com/vishvananda/netlink v1.3.2-0.20250622222046-78aca1ace529 // indirect
3331
github.com/vishvananda/netns v0.0.5 // indirect
3432
go.uber.org/atomic v1.9.0 // indirect
3533
go.uber.org/multierr v1.9.0 // indirect

go.sum

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=
22
github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
3-
github.com/containernetworking/cni v1.3.0 h1:v6EpN8RznAZj9765HhXQrtXgX+ECGebEYEmnuFjskwo=
4-
github.com/containernetworking/cni v1.3.0/go.mod h1:Bs8glZjjFfGPHMw6hQu82RUgEPNGEaBb9KS5KtNMnJ4=
5-
github.com/coreos/go-iptables v0.8.0 h1:MPc2P89IhuVpLI7ETL/2tx3XZ61VeICZjYqDEgNsPRc=
6-
github.com/coreos/go-iptables v0.8.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q=
73
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
8-
github.com/datum-cloud/galactic v0.0.3 h1:+HyGRQu2yPKUcIYF9L9mUC9MTWZZVlluwfc33CflIME=
9-
github.com/datum-cloud/galactic v0.0.3/go.mod h1:FshdOqC4SwuZZZ8C9G+PeOFCKBAWfguvb5u2V6MiXMw=
4+
github.com/datum-cloud/galactic-common v0.0.0-20251028162316-06f70d39f8ed h1:g1FgebSEgbJGq3RpB6GsJAObUFChP2IuP1OwBqINRlU=
5+
github.com/datum-cloud/galactic-common v0.0.0-20251028162316-06f70d39f8ed/go.mod h1:lJ8fte6gUiIi7cecSrfvicTQMgq+ejFrdN97ElARDR8=
106
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
117
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
128
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

srv6/neighborproxy/neighborproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/vishvananda/netlink"
77

8-
"github.com/datum-cloud/galactic/util"
8+
"github.com/datum-cloud/galactic-common/util"
99
)
1010

1111
func Add(ipnet *net.IPNet, vpc, vpcAttachment string) error {

srv6/routeegress/routeegress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/vishvananda/netlink"
77
"github.com/vishvananda/netlink/nl"
88

9-
"github.com/datum-cloud/galactic/cni/vrf"
9+
"github.com/datum-cloud/galactic-common/vrf"
1010
)
1111

1212
const LoopbackDevice = "lo-galactic"

srv6/routeingress/routeingress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"github.com/vishvananda/netlink"
77
"github.com/vishvananda/netlink/nl"
88

9-
"github.com/datum-cloud/galactic/cni/vrf"
10-
"github.com/datum-cloud/galactic/util"
9+
"github.com/datum-cloud/galactic-common/util"
10+
"github.com/datum-cloud/galactic-common/vrf"
1111
)
1212

1313
func Add(ip *net.IPNet, vpc, vpcAttachment string) error {

srv6/srv6.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/datum-cloud/galactic-agent/srv6/neighborproxy"
1313
"github.com/datum-cloud/galactic-agent/srv6/routeegress"
1414
"github.com/datum-cloud/galactic-agent/srv6/routeingress"
15-
"github.com/datum-cloud/galactic/util"
15+
"github.com/datum-cloud/galactic-common/util"
1616
)
1717

1818
func RouteIngressAdd(ipStr string) error {

0 commit comments

Comments
 (0)