add valid_enum with function and rename domain type to domainname

This commit is contained in:
2021-03-19 10:14:08 +01:00
parent 12acf2a3f4
commit 63e679036b
6 changed files with 45 additions and 11 deletions

View File

@ -1,5 +1,10 @@
from tiramisu import valid_not_equal, valid_ip_netmask, calc_value, valid_in_network
def trange(start, stop):
return list(range(start, stop))
def calc_val(*args, **kwargs):
if len(args) > 0:
return args[0]