diff --git a/application-framework/event/event.go b/application-framework/event/event.go index abce5b0d6ac804bb41e6ae8021c19726ad80c582..e3d01af9e401ad19bfdd54802b66f848c48bc38f 100644 --- a/application-framework/event/event.go +++ b/application-framework/event/event.go @@ -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) { diff --git a/controller/controller.go b/controller/controller.go index e45e9506f97600d77aea7b655085915519f9225c..33d92e4c3eeb70dc3c9a299524dd4adf0cde3a64 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -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