Defines | |
#define | JUNOS_ROUTING_ENGINE_0 1 |
Routing engine in slot 0. | |
#define | JUNOS_ROUTING_ENGINE_1 2 |
Routing engine in slot 1. | |
#define | JUNOS_ROUTING_ENGINE_MASTER 3 |
Master routing engine. | |
#define | JUNOS_ROUTING_ENGINE_BACKUP 4 |
Backup routing engine. | |
#define | JUNOS_ROUTING_ENGINE_LOCAL 5 |
Routing engine application is running on. | |
#define | JUNOS_ROUTING_ENGINE_OTHER 6 |
Routing engine in the other slot. | |
Typedefs | |
typedef int | junos_routing_engine_info_t |
Routing engine information type. | |
Functions | |
int | junos_re_info_slot (void) |
Get the chassis slot number for the routing engine the application is running on. | |
int | junos_re_info_hostname (junos_routing_engine_info_t re, char *name, size_t namesz) |
Get the host name for a specific routing engine in the chassis This API is thread safe. |
|
Get the host name for a specific routing engine in the chassis This API is thread safe.
errno will be set to one of the following values:
|
|
Get the chassis slot number for the routing engine the application is running on. This API is thread safe.
|