Skip to content

Commit

Permalink
index -1
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Jul 11, 2021
1 parent fea3007 commit bd6f2d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions clab/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func RenderAll(nodes map[string]nodes.Node, links map[int]*types.Link) (map[stri
if len(TemplateNames) == 0 {
return nil, fmt.Errorf("no templates files were found by %s path", TemplatePaths)
}
log.Infof("No template names specified (-l) using: %s", strings.Join(TemplateNames, ", "))
}

tmpl := template.New("").Funcs(jT.Funcs)
Expand Down
2 changes: 1 addition & 1 deletion clab/config/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func linkIP(link *types.Link) (string, string, error) {
if !okA {
return "", "", nil
}
sysA, err := netaddr.ParseIPPrefix(link.B.Node.Config.Vars[vkSystemIP])
sysA, err := netaddr.ParseIPPrefix(link.A.Node.Config.Vars[vkSystemIP])
if err != nil {
return "", "", fmt.Errorf("no 'ip' on link & the '%s' of %s: %s", vkSystemIP, link.A.Node.ShortName, err)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/google/uuid v1.2.0
github.com/hashicorp/go-version v1.2.1
github.com/jsimonetti/rtnetlink v0.0.0-20210226120601-1b79e63a70a0
github.com/kellerza/template v0.0.4
github.com/kellerza/template v0.0.5
github.com/mitchellh/go-homedir v1.1.0
github.com/olekukonko/tablewriter v0.0.5-0.20201029120751-42e21c7531a3
github.com/opencontainers/runtime-spec v1.0.3-0.20210303205135-43e4633e40c1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4=
github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA=
github.com/kellerza/template v0.0.4 h1:z/qhD9D50bEhbTu/1JN6ANiTECws8rKQBKmLDdwK6hs=
github.com/kellerza/template v0.0.4/go.mod h1:Og3Jdssypk1J/bNpWIrmymW5FOWI88vsY5Qx/e57V7M=
github.com/kellerza/template v0.0.5 h1:5mKC7ts/CfpzXiVsDoqlghUD52qqxHd1nA837SAap4M=
github.com/kellerza/template v0.0.5/go.mod h1:Og3Jdssypk1J/bNpWIrmymW5FOWI88vsY5Qx/e57V7M=
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
Expand Down

0 comments on commit bd6f2d2

Please sign in to comment.