original_docstring: This node will become the backup router
docstring: This node will become the backup router
docstring_tokens: This node will become the backup router
code: def become_backup_router(self):
          """This node will become the backup router"""
          LOG.debug("VPP becoming the standby router..")
          LOG.debug("Current router interface states: %s",
                    self.router_interface_states)
          for idx in self.router_interface_states:
              if self.router_interface_states[idx]:
                  LOG.debug("Bringing DOWN the router interface: %s", idx)
                  self.vpp.ifdown(idx)
                  self.router_interface_states[idx] = 0
          LOG.debug("New router interface states: %s",
                    self.router_interface_states)
code_tokens: def become_backup_router ( self ) : LOG . debug ( "VPP becoming the standby router.." ) LOG . debug ( "Current router interface states: %s" , self . router_interface_states ) for idx in self . router_interface_states : if self . router_interface_states [ idx ] : LOG . debug ( "Bringing DOWN the router interface: %s" , idx ) self . vpp . ifdown ( idx ) self . router_interface_states [ idx ] = 0 LOG . debug ( "New router interface states: %s" , self . router_interface_states )
short_docstring: This node will become the backup router
short_docstring_tokens: This node will become the backup router
comment: """This node will become the backup router"""