Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/nova/tests/network/test_linux_net.py b/nova/tests/network/test_linux_net.py
- index bd00be2..23bd2b6 100644
- --- a/nova/tests/network/test_linux_net.py
- +++ b/nova/tests/network/test_linux_net.py
- @@ -521,19 +521,23 @@ class LinuxNetworkTestCase(test.TestCase):
- self.flags(bgp_peer_as='56000')
- expected = '''neighbor 192.168.1.1 {
- - router-id 192.168.1.3;
- - local-address 192.168.1.3;
- + router-id %s;
- + local-address %s;
- local-as 56000;
- peer-as 56000;
- graceful-restart;
- static {
- - route 10.0.0.1/32 next-hop 192.168.1.3;
- - route 10.0.0.2/32 next-hop 192.168.1.3;
- + route 10.0.0.1/32 next-hop %s;
- + route 10.0.0.2/32 next-hop %s;
- }
- -}'''
- +}
- +''' % (FLAGS.my_ip, FLAGS.my_ip, FLAGS.my_ip, FLAGS.my_ip)
- + self.stubs.Set(db, 'floating_ip_get_all_by_host', fake1)
- actual_routes = self.driver.get_bgp_routes(self.context)
- - self.stubs.Set(db, 'floating_ip_get_all_by_host', fake1)
- + print "expected: %s" % expected
- + print "actual: %s" % actual_routes
- +
- self.assertEquals(actual_routes, expected)
- def test_get_bgp_routes_multiple_peers(self):
- @@ -566,7 +570,7 @@ neighbor 192.168.1.2 {
- route 10.0.0.2/32 next-hop 192.168.1.3;
- }
- }'''
- + self.stubs.Set(db, 'floating_ip_get_all_by_host', fake1)
- actual_routes = self.driver.get_bgp_routes(self.context)
- - self.stubs.Set(db, 'floating_ip_get_all_by_host', fake1)
- self.assertEquals(actual_routes, expected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement