restructuring and removing HEConfig

This commit is contained in:
brent s
2020-05-14 17:11:47 -04:00
parent 676aa8d5b6
commit 315af935ac
5 changed files with 242 additions and 232 deletions

10
utils/he_ipv6/utils.py Normal file
View File

@@ -0,0 +1,10 @@
def xml2bool(xml_str):
if xml_str is None:
return(None)
xml_str = xml_str.lower()[0]
if xml_str in ('t', '1'):
return(True)
elif xml_str in ('f', '0'):
return(False)
else:
raise ValueError('Not a boolean value')