Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Functions
hicn_plugin.h File Reference

This file contains init and cleanup for the sysrepo. More...

#include "hicn_vpp_comm.h"
Include dependency graph for hicn_plugin.h:

Go to the source code of this file.

Functions

int sr_plugin_init_cb (sr_session_ctx_t *session, void **private_ctx)
 initialize function for sysrepo plugin, In this function we connect to vpp from one side and subscribe for all hICN events as well as interface events (if any) More...
 
void sr_plugin_cleanup_cb (sr_session_ctx_t *session, void *private_ctx)
 cleanup function for sysrepo, In this function we connect to vpp from one side and and unsubscribe for all hICN events as well as interface events (if any) More...
 

Detailed Description

This file contains init and cleanup for the sysrepo.

Function Documentation

◆ sr_plugin_cleanup_cb()

void sr_plugin_cleanup_cb ( sr_session_ctx_t *  session,
void *  private_ctx 
)

cleanup function for sysrepo, In this function we connect to vpp from one side and and unsubscribe for all hICN events as well as interface events (if any)

Parameters
sessionpointer to the sesssion context
private_ctxpointer to the context

◆ sr_plugin_init_cb()

int sr_plugin_init_cb ( sr_session_ctx_t *  session,
void **  private_ctx 
)

initialize function for sysrepo plugin, In this function we connect to vpp from one side and subscribe for all hICN events as well as interface events (if any)

Parameters
sessionpointer to the sesssion context
private_ctxpointer to the context
Returns
in success the function returns SR_ERR_OK otherwise it pass error