original_docstring: This node will become the master router
docstring: This node will become the master router
docstring_tokens: This node will become the master router
code: def become_master_router(self):
          """This node will become the master router"""
          LOG.debug("VPP becoming the master router..")
          LOG.debug("Current router interface states: %s",
                    self.router_interface_states)
          for idx in self.router_interface_states:
              if not self.router_interface_states[idx]:
                  LOG.debug("Bringing UP the router interface: %s", idx)
                  # TODO(najoy): Bring up intf. only if not set to admin DOWN
                  self.vpp.ifup(idx)
                  self.router_interface_states[idx] = 1
          LOG.debug("New router interface states: %s",
                    self.router_interface_states)
code_tokens: def become_master_router ( self ) : LOG . debug ( "VPP becoming the master router.." ) LOG . debug ( "Current router interface states: %s" , self . router_interface_states ) for idx in self . router_interface_states : if not self . router_interface_states [ idx ] : LOG . debug ( "Bringing UP the router interface: %s" , idx ) self . vpp . ifup ( idx ) self . router_interface_states [ idx ] = 1 LOG . debug ( "New router interface states: %s" , self . router_interface_states )
short_docstring: This node will become the master router
short_docstring_tokens: This node will become the master router
comment: """This node will become the master router"""$SEP$# TODO(najoy): Bring up intf. only if not set to admin DOWN