Skip to content
Snippets Groups Projects
Commit d0d6d219 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

Application framework qol update

See merge request !478
parent bb8079c7
No related branches found
No related tags found
1 merge request!478Application framework qol update
Pipeline #153233 failed
......@@ -8,9 +8,10 @@ import (
// Event is a event that can be published via the event service as payload.
type Event struct {
ID uuid.UUID `json:"id,omitempty"`
EntityID uuid.UUID `json:"entity_id,omitempty"`
Type string `json:"type,omitempty"`
ID uuid.UUID `json:"id,omitempty"`
EntityID uuid.UUID `json:"entity_id,omitempty"`
Type string `json:"type,omitempty"`
PathsAndValuesMap map[string]string `json:"paths_and_values,omitempty"` // Used to monitor updates happening on YANG paths of network elements.
}
func getEventFromPayload(payload []byte) (*Event, error) {
......
......@@ -297,6 +297,17 @@ func ensureDefaultRoleExists() error {
"/gosdn.networkelement.NetworkElementService/SubscribePath",
"/gosdn.plugin_internal.PluginInternalService/AvailablePlugins",
"/gosdn.plugin_internal.PluginInternalService/GetPluginSchema",
"/gosdn.app.AppService/Register",
"/gosdn.app.AppService/Deregister",
"/gosdn.configurationmanagement.ConfigurationManagementService/ExportSDNConfig",
"/gosdn.configurationmanagement.ConfigurationManagementService/ImportSDNConfig",
"/gosdn.topology.RoutingTableService/AddRoutingTable",
"/gosdn.topology.RoutingTableService/GetRoutes",
"/gosdn.topology.RoutingTableService/DeleteRoute",
"/gosdn.topology.TopologyService/AddLink",
"/gosdn.topology.TopologyService/GetTopology",
"/gosdn.topology.TopologyService/UpdateLink",
"/gosdn.topology.TopologyService/DeleteLink",
}))
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment