mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Bump pre-commit hooks
This commit is contained in:
parent
6d272038fe
commit
b9eabbabba
11 changed files with 28 additions and 28 deletions
|
@ -76,16 +76,16 @@ event OpenFlow::cluster_flow_clear(name: string)
|
|||
}
|
||||
@endif
|
||||
|
||||
function register_controller(tpe: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
function register_controller(type_: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
{
|
||||
controller$state$_name = cat(tpe, name);
|
||||
controller$state$_plugin = tpe;
|
||||
controller$state$_name = cat(type_, name);
|
||||
controller$state$_plugin = type_;
|
||||
|
||||
# we only run the init functions on the manager.
|
||||
if ( Cluster::local_node_type() != Cluster::MANAGER )
|
||||
return;
|
||||
|
||||
register_controller_impl(tpe, name, controller);
|
||||
register_controller_impl(type_, name, controller);
|
||||
}
|
||||
|
||||
function unregister_controller(controller: Controller)
|
||||
|
|
|
@ -113,12 +113,12 @@ export {
|
|||
## Function to register a controller instance. This function
|
||||
## is called automatically by the plugin _new functions.
|
||||
##
|
||||
## tpe: Type of this plugin.
|
||||
## type_: Type of this plugin.
|
||||
##
|
||||
## name: Unique name of this controller instance.
|
||||
##
|
||||
## controller: The controller to register.
|
||||
global register_controller: function(tpe: OpenFlow::Plugin, name: string, controller: Controller);
|
||||
global register_controller: function(type_: OpenFlow::Plugin, name: string, controller: Controller);
|
||||
|
||||
## Function to unregister a controller instance. This function
|
||||
## should be called when a specific controller should no longer
|
||||
|
@ -253,7 +253,7 @@ function controller_init_done(controller: Controller)
|
|||
|
||||
# Functions that are called from cluster.zeek and non-cluster.zeek
|
||||
|
||||
function register_controller_impl(tpe: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
function register_controller_impl(type_: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
{
|
||||
if ( controller$state$_name in name_to_controller )
|
||||
{
|
||||
|
|
|
@ -25,12 +25,12 @@ function flow_clear(controller: Controller): bool
|
|||
return F;
|
||||
}
|
||||
|
||||
function register_controller(tpe: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
function register_controller(type_: OpenFlow::Plugin, name: string, controller: Controller)
|
||||
{
|
||||
controller$state$_name = cat(tpe, name);
|
||||
controller$state$_plugin = tpe;
|
||||
controller$state$_name = cat(type_, name);
|
||||
controller$state$_plugin = type_;
|
||||
|
||||
register_controller_impl(tpe, name, controller);
|
||||
register_controller_impl(type_, name, controller);
|
||||
}
|
||||
|
||||
function unregister_controller(controller: Controller)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue