4 #define MAX_ADJACENCIES 8
14 struct ospf_test_node
{
16 const char *router_id
;
18 struct ospf_test_adj adjacencies
[MAX_ADJACENCIES
+ 1];
21 struct ospf_topology
{
22 struct ospf_test_node nodes
[MAX_NODES
+ 1];
26 extern struct ospf_topology
*test_find_topology(const char *name
);
27 extern struct ospf_test_node
*test_find_node(struct ospf_topology
*topology
,
28 const char *hostname
);
29 extern int topology_load(struct vty
*vty
, struct ospf_topology
*topology
,
30 struct ospf_test_node
*root
, struct ospf
*ospf
);
32 /* Global variables. */
33 extern struct thread_master
*master
;
34 extern struct ospf_topology topo1
;
35 extern struct ospf_topology topo2
;
36 extern struct ospf_topology topo3
;
37 extern struct ospf_topology topo4
;
38 extern struct ospf_topology topo5
;
39 extern struct zebra_privs_t ospfd_privs
;
41 /* For stable order in unit tests */
42 extern int sort_paths(const void **path1
, const void **path2
);
44 /* Print the routing table */
45 extern void print_route_table(struct vty
*vty
, struct route_table
*rt
);
47 #endif /* _COMMON_OSPF_H */