Exemple #1
0
 def test_is_valid_vni_over(self):
     eq_(False, validation.is_valid_vni(0xffffff + 1))
Exemple #2
0
 def test_is_valid_vni_not_int(self):
     eq_(False, validation.is_valid_vni('foo'))
Exemple #3
0
 def test_is_valid_vni_negative(self):
     eq_(False, validation.is_valid_vni(-1))
Exemple #4
0
def is_valid_vni(vni):
    if not validation.is_valid_vni(vni):
        raise ConfigValueError(conf_name=EVPN_VNI,
                               conf_value=vni)
Exemple #5
0
 def test_is_valid_vni(self):
     ok_(validation.is_valid_vni(100))
Exemple #6
0
def is_valid_vni(vni):
    if not validation.is_valid_vni(vni):
        raise ConfigValueError(conf_name=EVPN_VNI, conf_value=vni)
 def test_is_valid_vni_over(self):
     eq_(False, validation.is_valid_vni(0xFFFFFF + 1))
 def test_is_valid_vni_negative(self):
     eq_(False, validation.is_valid_vni(-1))
 def test_is_valid_vni_not_int(self):
     eq_(False, validation.is_valid_vni("foo"))
Exemple #10
0
 def test_is_valid_vni(self):
     ok_(validation.is_valid_vni(100))