mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-20 23:51:26 +08:00
chore: fix function names in comment (#2888)
Signed-off-by: loselarry <bikangning@yeah.net>
This commit is contained in:
@@ -138,7 +138,7 @@ func GetParentNetwork(networkname string) (models.Network, error) {
|
|||||||
return network, nil
|
return network, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetParentNetwork - get parent network
|
// GetNetworkSettings - get parent network
|
||||||
func GetNetworkSettings(networkname string) (models.Network, error) {
|
func GetNetworkSettings(networkname string) (models.Network, error) {
|
||||||
|
|
||||||
var network models.Network
|
var network models.Network
|
||||||
|
@@ -89,7 +89,7 @@ func StringSliceContains(slice []string, item string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// NormalCIDR - returns the first address of CIDR
|
// NormalizeCIDR - returns the first address of CIDR
|
||||||
func NormalizeCIDR(address string) (string, error) {
|
func NormalizeCIDR(address string) (string, error) {
|
||||||
ip, IPNet, err := net.ParseCIDR(address)
|
ip, IPNet, err := net.ParseCIDR(address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user