Skip to content

Commit 2bd7076

Browse files
committed
remove duplicate doc and boiler plate code
1 parent 6738454 commit 2bd7076

File tree

2 files changed

+0
-336
lines changed

2 files changed

+0
-336
lines changed

cns/restserver/ibdevice.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,3 @@ func AssignDevicesToPod(podID string, deviceIDs []string) (types.ResponseCode, s
5757
// here is where we would make the MTPNC and write the devices to the spec
5858
return types.Success, fmt.Sprintf("Assigned devices %v to pod %s", deviceIDs, podID)
5959
}
60-
61-
// IsValidMacAddress validates MAC address format
62-
func IsValidMacAddress(mac string) bool {
63-
if len(mac) != 17 {
64-
return false
65-
}
66-
67-
for i, c := range mac {
68-
if i%3 == 2 {
69-
if c != ':' {
70-
return false
71-
}
72-
} else {
73-
if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
74-
return false
75-
}
76-
}
77-
}
78-
79-
return true
80-
}

docs/cns-ibdevice-api.md

Lines changed: 0 additions & 315 deletions
This file was deleted.

0 commit comments

Comments
 (0)