Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Dec 4, 2024
1 parent aff5451 commit 866110d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ var generateCmd = &cobra.Command{
Use: "generate",
Aliases: []string{"gen"},
Short: "generate a Clos topology file, based on provided flags",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
if name == "" {
return errors.New("provide a lab name with --name flag")
}
Expand Down
2 changes: 1 addition & 1 deletion nodes/ceos/ceos.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (n *ceos) ceosPostDeploy(_ context.Context) error {
func (n *ceos) CheckInterfaceName() error {
// allow eth and et interfaces
// https://regex101.com/r/umQW5Z/2
ifRe := regexp.MustCompile(`eth[1-9][\w\.]*$|et[1-9][\w\.]*$`)
ifRe := regexp.MustCompile(`eth[1-9][\w.]*$|et[1-9][\w.]*$`)
for _, e := range n.Endpoints {
if !ifRe.MatchString(e.GetIfaceName()) {
return fmt.Errorf("arista cEOS node %q has an interface named %q which doesn't match the required pattern. Interfaces should be named as ethX or etX, where X consists of alpanumerical characters", n.Cfg.ShortName, e.GetIfaceName())
Expand Down

0 comments on commit 866110d

Please sign in to comment.