g5k-topo.c
Go to the documentation of this file.
235 network = padico_topo_network_create(padico_string_get(network_name), PADICO_TOPO_SCOPE_HOST, sizeof(struct in_addr), AF_INET);
240static void g5k_compute_networks(const json_t *networks, const padico_topo_host_t host, const char* site)
292 padico_topo_binding_add_filter(priv_binding, PADICO_TOPO_FILTER_BLOCK_IN, PORT_ANY, IPPROTO_TCP);
293 padico_topo_binding_add_filter(priv_binding, PADICO_TOPO_FILTER_BLOCK_OUT, PORT_ANY, IPPROTO_TCP);
294 padico_topo_binding_add_filter(priv_binding, PADICO_TOPO_FILTER_BLOCK_IN, PORT_ANY, IPPROTO_UDP);
342 snprintf(request_url, URL_SIZE, "%s:%d/%s", APIADDR, SSHPORT, json_string_value(href_clusters));
429 (g5k_user_access && (strlen(g5k_user_access) > 0))?g5k_user_access:g5k_default_access[access_index],
assert(slab_size > 0)
puk_allocator_cell_clear & cell(struct ns_rulebucket_hash_entry_s)
static void g5k_compute_nodes(const json_t *nodes, const char *site)
Definition g5k-topo.c:304
static padico_topo_network_t g5k_create_network(const struct in_addr *network_addr, int cidr)
Definition g5k-topo.c:228
static size_t write_response(void *contents, size_t size, size_t nmemb, void *userp)
function used by curl to write the server response in a buffer
Definition g5k-topo.c:107
static void g5k_compute_networks(const json_t *networks, const padico_topo_host_t host, const char *site)
Definition g5k-topo.c:240
static int g5k_get_netmask(const char *site, struct in_addr *netmask_addr)
cidr netmask is not available in Grid5000 API if Grid5000's admin change network configuration,...
Definition g5k-topo.c:73
static puk_opt_type_string_t padico_module_attr_access_getvalue(void)
Definition g5k-topo.c:59
static json_t * get_href_by_title(const json_t *array, const char *title_str)
Definition g5k-topo.c:181
void padico_topo_host_add_name(padico_topo_host_t host, const char *_name, int resolvable)
Add a name to a host;.
Definition topology.c:1525
padico_topo_network_t padico_topo_network_create(const char *id, padico_topo_binding_scope_t scope, size_t addr_size, int family)
Definition topology.c:1853
padico_topo_hwaddr_t padico_topo_hwaddr_create(const char *name, int index, int type, size_t len, const void *addr)
Definition topology.c:126
padico_topo_network_t padico_topo_network_getbyid(const char *network_id)
Definition topology.c:2351
void padico_topo_binding_add_hostname(padico_topo_binding_t binding, const char *name)
Definition topology.c:240
void padico_topo_binding_add_filter(padico_topo_binding_t binding, padico_topo_filter_policy_t policy, uint16_t port, int protocol)
Definition topology.c:262
padico_topo_host_t padico_topo_host_create(const char *hostname)
Create a new 'host' record from a given canonical name.
Definition topology.c:1463
void padico_topo_hwaddr_add(padico_topo_host_t host, padico_topo_hwaddr_t *_hwaddr)
Definition topology.c:153
padico_topo_addr_visibility_t padico_topo_inet_visibility(in_addr_t _inaddr)
Definition topology.c:1197
padico_topo_binding_t padico_topo_host_bind(padico_topo_host_t host, padico_topo_network_t network, const void *address)
Declare a new binding for a host.
Definition topology.c:1609
void padico_topo_binding_add_hwaddr(padico_topo_binding_t binding, padico_topo_hwaddr_t hwaddr)
Definition topology.c:196
a binding of an entity with a network (protocol level)
Definition Topology-internals.h:187
Definition g5k-topo.c:64