Example #1
0
 def test_is_valid_ethernet_tag_id_over(self):
     eq_(False, validation.is_valid_ethernet_tag_id(0xffffffff + 1))
Example #2
0
 def test_is_valid_ethernet_tag_id_not_int(self):
     eq_(False, validation.is_valid_ethernet_tag_id('foo'))
Example #3
0
 def test_is_valid_ethernet_tag_id_negative(self):
     eq_(False, validation.is_valid_ethernet_tag_id(-1))
Example #4
0
def is_valid_ethernet_tag_id(ethernet_tag_id):
    if not validation.is_valid_ethernet_tag_id(ethernet_tag_id):
        raise ConfigValueError(conf_name=EVPN_ETHERNET_TAG_ID,
                               conf_value=ethernet_tag_id)
Example #5
0
 def test_is_valid_ethernet_tag_id(self):
     ok_(validation.is_valid_ethernet_tag_id(100))
Example #6
0
File: prefix.py Project: tkaiwa/ryu
def is_valid_ethernet_tag_id(ethernet_tag_id):
    if not validation.is_valid_ethernet_tag_id(ethernet_tag_id):
        raise ConfigValueError(conf_name=EVPN_ETHERNET_TAG_ID,
                               conf_value=ethernet_tag_id)
Example #7
0
 def test_is_valid_ethernet_tag_id_over(self):
     eq_(False, validation.is_valid_ethernet_tag_id(0xFFFFFFFF + 1))
Example #8
0
 def test_is_valid_ethernet_tag_id_negative(self):
     eq_(False, validation.is_valid_ethernet_tag_id(-1))
Example #9
0
 def test_is_valid_ethernet_tag_id_not_int(self):
     eq_(False, validation.is_valid_ethernet_tag_id("foo"))
Example #10
0
 def test_is_valid_ethernet_tag_id(self):
     ok_(validation.is_valid_ethernet_tag_id(100))