diff options
author | Maros Ondrejicka <mondreji@cisco.com> | 2023-02-28 16:55:01 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-03-15 17:20:57 +0000 |
commit | e7625d08566f6127acb351376797b4fdc75e3c6a (patch) | |
tree | cbe07626c5211af5ed3f55ab360b259e82d03c8c /extras/hs-test/topo.go | |
parent | c3542e17b5dfea27f46f0656e8f1f8092545b796 (diff) |
hs-test: use consistent naming convention
Exported indentifiers in Go start with capital letters. Only few fields
in hs-test, which are being unmarshaled from yaml are required to be
exported. Every other field name or method name should start with
lower-case letter, to be consistent with this naming convention.
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I7eab0eef9fd08a7890c77b6ce1aeb3fa4b80f3cd
Diffstat (limited to 'extras/hs-test/topo.go')
-rw-r--r-- | extras/hs-test/topo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/hs-test/topo.go b/extras/hs-test/topo.go index d77d2dab33f..6cb294511b3 100644 --- a/extras/hs-test/topo.go +++ b/extras/hs-test/topo.go @@ -14,7 +14,7 @@ type YamlTopology struct { Volumes []VolumeConfig `yaml:"volumes"` } -func AddAddress(device, address, ns string) error { +func addAddress(device, address, ns string) error { c := []string{"ip", "addr", "add", address, "dev", device} cmd := appendNetns(c, ns) err := cmd.Run() |