10 lines
732 B
CSV
Raw Normal View History

#node,rack,u,chassis,slot,room,comments,disable
84nodeperrack,"|\D+(\d+)|(1+(($1-1)/84))|","|\D+(\d+)|(($1-1)%84+1)|"
56nodeperrack,"|\D+(\d+)|(1+(($1-1)/56))|","|\D+(\d+)|(($1-1)%56+1)|"
40nodeperrack,"|\D+(\d+)|(1+(($1-1)/40))|","|\D+(\d+)|(($1-1)%40+1)|"
41nodeperrack,"|\D+(\d+)|(1+(($1-1)/41))|","|\D+(\d+)|(($1-1)%41+1)|"
42nodeperrack,"|\D+(\d+)|(1+(($1-1)/42))|","|\D+(\d+)|(($1-1)%42+1)|"
20nodeperrack,"|\D+(\d+)|(1+(($1-1)/20))|","|\D+(\d+)|((($1-1)%20+1)*2-1)|"
21nodeperrack,"|\D+(\d+)|(1+(($1-1)/21))|","|\D+(\d+)|((($1-1)%21+1)*2-1)|"
"idataplex","|\D+(\d+)|(1+(($1-1)/84))|","|\D+(\d+)|(sprintf(""%c"",(65+2*((($1-1)/42)%2))))-(($1-1)%42+1)|",,,,"This creates U descriptions in the form A-1 to A-42 and C-1 to C-42"