Exemple #1
0
 def test_is_valid_route_dist_invalid_ipv4_addr(self):
     eq_(False, validation.is_valid_route_dist('xxx.xxx.xxx.xxx:333'))
Exemple #2
0
 def test_is_valid_route_not_str(self):
     eq_(False, validation.is_valid_route_dist(65000))
Exemple #3
0
 def test_is_valid_route_dist_short(self):
     eq_(False, validation.is_valid_route_dist('65000'))
Exemple #4
0
 def test_is_valid_route_dist(self):
     ok_(validation.is_valid_route_dist('65000:222'))
Exemple #5
0
 def test_is_valid_route_dist_ipv4_based(self):
     ok_(validation.is_valid_route_dist('10.0.0.1:333'))
def validate_rd(route_dist):
    if not validation.is_valid_route_dist(route_dist):
        raise ConfigValueError(conf_name=ROUTE_DISTINGUISHER,
                               conf_value=route_dist)
    return route_dist
Exemple #7
0
def validate_rd(route_dist):
    if not validation.is_valid_route_dist(route_dist):
        raise ConfigValueError(conf_name=ROUTE_DISTINGUISHER,
                               conf_value=route_dist)
    return route_dist
 def test_is_valid_route_dist_invalid_ipv4_addr(self):
     eq_(False, validation.is_valid_route_dist("xxx.xxx.xxx.xxx:333"))
 def test_is_valid_route_dist_short(self):
     eq_(False, validation.is_valid_route_dist("65000"))
Exemple #10
0
 def test_is_valid_route_not_str(self):
     eq_(False, validation.is_valid_route_dist(65000))
Exemple #11
0
 def test_is_valid_route_dist_ipv4_based(self):
     ok_(validation.is_valid_route_dist("10.0.0.1:333"))
Exemple #12
0
 def test_is_valid_route_dist(self):
     ok_(validation.is_valid_route_dist("65000:222"))