updated .gitconfig
70856ae6
Hari Sekhon
committed
1 changed file
.gitconfig
/.gitconfig-2+2
/.gitconfig
Add comment 154 maclist = [mac.replace(":","") for mac in maclist]
Add comment 155 maclist = [mac.upper() for mac in maclist]
Add comment 156
Add comment 157 Minus   re_mac_format = re.compile("^([\dA-Fa-f]{2}[:-]?){5}[\dA-Fa-f]{2}$")
Add comment 157 Plus   re_mac_format = re.compile(r'^([\dA-Fa-f]{2}[:-]?){5}[\dA-Fa-f]{2}$')
Add comment 158
Add comment 159 for mac in maclist:
Add comment 160 if not re_mac_format.match(mac):
Add comment 289 host_whitelist = host_whitelist.split()
Add comment 290 host_whitelist = [host.upper() for host in host_whitelist]
Add comment 291
Add comment 292 Minus   for ip in self.address_dict.keys():
Add comment 292 Plus   for ip in self.address_dict:
Add comment 293 hostname = self.address_dict[ip][0]
Add comment 294 mac = self.address_dict[ip][1]
Add comment 295 if hostname.upper() not in host_whitelist: