From e190fb37669aae2215f4d07b9ba574bca15ef7c1 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Thu, 5 Dec 2024 08:39:07 +0100 Subject: [PATCH] typo --- nodes/bridge/bridge.go | 6 +++--- nodes/ipinfusion_ocnos/ipinfusion_ocnos.go | 4 ++-- nodes/linux/linux.go | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nodes/bridge/bridge.go b/nodes/bridge/bridge.go index 232743203..8b4c5eabb 100644 --- a/nodes/bridge/bridge.go +++ b/nodes/bridge/bridge.go @@ -29,13 +29,13 @@ const ( iptCheckCmd = "-vL FORWARD -w 5" iptAllowCmd = "-I FORWARD -i %s -j ACCEPT -w 5" - generateable = true - generateIfFornamt = "eth%d" + generateable = true + generateIfFormat = "eth%d" ) // Register registers the node in the NodeRegistry. func Register(r *nodes.NodeRegistry) { - generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFornamt) + generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFormat) nrea := nodes.NewNodeRegistryEntryAttributes(nil, generateNodeAttributes) r.Register(kindnames, func() nodes.Node { diff --git a/nodes/ipinfusion_ocnos/ipinfusion_ocnos.go b/nodes/ipinfusion_ocnos/ipinfusion_ocnos.go index fdefc5bda..ff83c3cf2 100644 --- a/nodes/ipinfusion_ocnos/ipinfusion_ocnos.go +++ b/nodes/ipinfusion_ocnos/ipinfusion_ocnos.go @@ -23,12 +23,12 @@ var ( const ( scrapliPlatformName = "ipinfusion_ocnos" generateable = false - generateIfFornamt = "" + generateIfFormat = "" ) // Register registers the node in the NodeRegistry. func Register(r *nodes.NodeRegistry) { - generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFornamt) + generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFormat) nrea := nodes.NewNodeRegistryEntryAttributes(defaultCredentials, generateNodeAttributes) r.Register(kindnames, func() nodes.Node { diff --git a/nodes/linux/linux.go b/nodes/linux/linux.go index eb3821ba3..d1f4336de 100644 --- a/nodes/linux/linux.go +++ b/nodes/linux/linux.go @@ -20,15 +20,15 @@ import ( ) const ( - generateable = true - generateIfFornamt = "eth%d" + generateable = true + generateIfFormat = "eth%d" ) var kindnames = []string{"linux"} // Register registers the node in the NodeRegistry. func Register(r *nodes.NodeRegistry) { - generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFornamt) + generateNodeAttributes := nodes.NewGenerateNodeAttributes(generateable, generateIfFormat) nrea := nodes.NewNodeRegistryEntryAttributes(nil, generateNodeAttributes) r.Register(kindnames, func() nodes.Node {