def is_valid_vni(vni):
 return (isinstance(vni, numbers.Integral) and (0 <= vni <= 16777215))

def is_valid_vni ( vni ) : return ( isinstance ( vni , numbers . Integral ) and ( 0 <= vni <= 16777215 ) )
returns true if the given virtual network identifier for vxlan is valid .