mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-19 02:06:52 +08:00
chore: fix function names in comment (#2888)
Signed-off-by: loselarry <bikangning@yeah.net>
This commit is contained in:
parent
08efea73ac
commit
fa32c2ac58
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ func GetParentNetwork(networkname string) (models.Network, error) {
|
|||
return network, nil
|
||||
}
|
||||
|
||||
// GetParentNetwork - get parent network
|
||||
// GetNetworkSettings - get parent network
|
||||
func GetNetworkSettings(networkname string) (models.Network, error) {
|
||||
|
||||
var network models.Network
|
||||
|
|
|
@ -89,7 +89,7 @@ func StringSliceContains(slice []string, item string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// NormalCIDR - returns the first address of CIDR
|
||||
// NormalizeCIDR - returns the first address of CIDR
|
||||
func NormalizeCIDR(address string) (string, error) {
|
||||
ip, IPNet, err := net.ParseCIDR(address)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue