'Test to update admin state up of router
1. Check public connectivity before updating
admin_state_up attribute of router to False
2. Check public connectivity after updating
admin_state_up attribute of router to False
3. Check public connectivity after updating
admin_state_up attribute of router to True'

@decorators.idempotent_id('04b9fe4e-85e8-4aea-b937-ea93885ac59f')
@testtools.skipIf(CONF.network.shared_physical_network, 'Router    state    can    be    altered    only    with    multitenant    networks    capabilities')
@decorators.attr(type='slow')
@test.services('compute', 'network')
def test_update_router_admin_state(self):

    self._setup_network_and_servers()
    self.check_public_network_connectivity(should_connect=True, msg='before    updating    admin_state_up    of    router    to    False')
    self._update_router_admin_state(self.router, False)
    self.check_public_network_connectivity(should_connect=False, msg='after    updating    admin_state_up    of    router    to    False', should_check_floating_ip_status=False)
    self._update_router_admin_state(self.router, True)
    self.check_public_network_connectivity(should_connect=True, msg='after    updating    admin_state_up    of    router    to    True')
