ns-basic-common.c
Go to the documentation of this file.
40static inline int ns_host_in_entity(padico_topo_host_t host, struct ns_entity_s*entity, void**cookie)
88static inline int ns_node_in_entity(padico_topo_node_t node, struct ns_entity_s*entity, void**cookie)
124 const ns_entity_t self_node = ns_entity_byname_hashtable_lookup(&nsdb.nodes_by_name, node_name);
Internal structures for NS-basic.
const char * padico_topo_node_getname(padico_topo_node_t node)
Get the canonical name of a node.
Definition topology.c:1917
padico_topo_host_t padico_topo_node_gethost(padico_topo_node_t node)
Get the host hosting a node.
Definition topology.c:1927
const char * padico_topo_host_getname(padico_topo_host_t host)
Get the canonical name of a host.
Definition topology.c:1944
puk_component_t ns_basic_host_assembly(padico_topo_host_t host, const char *profile, puk_iface_t iface)
Definition ns-basic-common.c:209
static int ns_node_in_entity(padico_topo_node_t node, struct ns_entity_s *entity, void **cookie)
Definition ns-basic-common.c:88
puk_component_t ns_basic_assembly(padico_topo_node_t n1, padico_topo_node_t n2, const char *profile, puk_iface_t iface)
Definition ns-basic-common.c:137
Definition Ns-basic-internals.h:71
enum ns_entity_s::ns_entity_kind_e kind
struct ns_entity_vect_s leaves
flattened vector of all contained terminal entities
Definition Ns-basic-internals.h:67
Definition Ns-basic-internals.h:58
Definition Ns-basic-internals.h:52
Definition Ns-basic-internals.h:117
Definition Ns-basic-internals.h:140
struct ns_entity_byname_hashtable_s nodes_by_name
nodes found in the config- hashed by nodename
Definition Ns-basic-internals.h:144
struct ns_rulebucket_hashtable_s rulebuckets
rules hashed by bucket [ (iface,profile) -> rule_list ]
Definition Ns-basic-internals.h:142