Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
d28f52a7
Commit
d28f52a7
authored
11 years ago
by
Vishnu Emmadi
Browse files
Options
Downloads
Patches
Plain Diff
change flow reconcile event names to lower case, delemited by "-"
change flow mod event names to being delimited by "-"
parent
3be0a70d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/flowcache/FlowReconcileQuery.java
+40
-19
40 additions, 19 deletions
...et/floodlightcontroller/flowcache/FlowReconcileQuery.java
with
40 additions
and
19 deletions
src/main/java/net/floodlightcontroller/flowcache/FlowReconcileQuery.java
+
40
−
19
View file @
d28f52a7
...
@@ -57,47 +57,68 @@ public class FlowReconcileQuery {
...
@@ -57,47 +57,68 @@ public class FlowReconcileQuery {
}
}
public
static
enum
ReconcileQueryEvType
{
public
static
enum
ReconcileQueryEvType
{
/* Interface rule of a bvs was modified */
/* Interface rule of a bvs was modified */
BVS_INTERFACE_RULE_CHANGED
(
EventPriority
.
LOW
),
BVS_INTERFACE_RULE_CHANGED
(
EventPriority
.
LOW
,
BVS_INTERFACE_RULE_CHANGED_MATCH_SWITCH_PORT
(
EventPriority
.
LOW
),
"Flow Reconcile Events triggered by BVS Interface Rule Changes"
),
BVS_INTERFACE_RULE_CHANGED_MATCH_MAC
(
EventPriority
.
LOW
),
BVS_INTERFACE_RULE_CHANGED_MATCH_SWITCH_PORT
(
EventPriority
.
LOW
,
BVS_INTERFACE_RULE_CHANGED_MATCH_VLAN
(
EventPriority
.
LOW
),
"Flow Reconcile Events triggered by Switch-Port based BVS Interface Rule Changes"
),
BVS_INTERFACE_RULE_CHANGED_MATCH_IPSUBNET
(
EventPriority
.
LOW
),
BVS_INTERFACE_RULE_CHANGED_MATCH_MAC
(
EventPriority
.
LOW
,
BVS_INTERFACE_RULE_CHANGED_MATCH_TAG
(
EventPriority
.
LOW
),
"Flow Reconcile Events triggered by MAC based BVS Interface Rule Changes"
),
BVS_INTERFACE_RULE_CHANGED_MATCH_VLAN
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by VLAN based BVS Interface Rule Changes"
),
BVS_INTERFACE_RULE_CHANGED_MATCH_IPSUBNET
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by IP Subnet based BVS Interface Rule Changes"
),
BVS_INTERFACE_RULE_CHANGED_MATCH_TAG
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by Tag based BVS Interface Rule Changes"
),
/* Some bvs configuration was changed */
/* Some bvs configuration was changed */
BVS_PRIORITY_CHANGED
(
EventPriority
.
LOW
),
BVS_PRIORITY_CHANGED
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by BVS Priority Changes"
),
/* ACL configuration was changed */
/* ACL configuration was changed */
ACL_CONFIG_CHANGED
(
EventPriority
.
LOW
),
ACL_CONFIG_CHANGED
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by ACL Config Changes"
),
/* VRS routing rule was changed */
/* VRS routing rule was changed */
VRS_ROUTING_RULE_CHANGED
(
EventPriority
.
LOW
),
VRS_ROUTING_RULE_CHANGED
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by VRS Routing Rule Changes"
),
/* VRS static ARP table was changed*/
/* VRS static ARP table was changed*/
VRS_STATIC_ARP_CHANGED
(
EventPriority
.
LOW
),
VRS_STATIC_ARP_CHANGED
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by VRS Static ARP Config Changes"
),
/* device had moved to a different port in the network */
/* device had moved to a different port in the network */
DEVICE_MOVED
(
EventPriority
.
HIGH
),
DEVICE_MOVED
(
EventPriority
.
HIGH
,
"Flow Reconcile Events triggered by Host moves"
),
/* device's property had changed, such as tag assignment */
/* device's property had changed, such as tag assignment */
DEVICE_PROPERTY_CHANGED
(
EventPriority
.
LOW
),
DEVICE_PROPERTY_CHANGED
(
EventPriority
.
LOW
,
"Flow Reconcile Events triggered by Host Property Changes"
),
/* Link down */
/* Link down */
LINK_DOWN
(
EventPriority
.
MEDIUM
);
LINK_DOWN
(
EventPriority
.
MEDIUM
,
"Flow Reconcile Events triggered by Link Down Events"
);
private
String
description
;
private
EventPriority
priority
;
private
EventPriority
priority
;
private
IEventUpdater
<
FlowReconcileQueryDebugEvent
>
private
IEventUpdater
<
FlowReconcileQueryDebugEvent
>
evReconcileQueryDebugEvent
;
evReconcileQueryDebugEvent
;
private
ReconcileQueryEvType
(
EventPriority
priority
)
{
private
ReconcileQueryEvType
(
EventPriority
priority
,
String
description
)
{
this
.
priority
=
priority
;
this
.
priority
=
priority
;
this
.
description
=
description
;
}
}
public
EventPriority
getPriority
()
{
public
EventPriority
getPriority
()
{
return
this
.
priority
;
return
this
.
priority
;
}
}
public
String
getDescription
()
{
return
description
;
}
public
void
registerDebugEvent
(
String
packageName
,
public
void
registerDebugEvent
(
String
packageName
,
IDebugEventService
debugEvents
)
IDebugEventService
debugEvents
)
throws
MaxEventsRegistered
{
throws
MaxEventsRegistered
{
try
{
try
{
evReconcileQueryDebugEvent
=
evReconcileQueryDebugEvent
=
debugEvents
.
registerEvent
(
packageName
,
this
.
toString
(),
debugEvents
.
registerEvent
(
this
.
toString
(),
packageName
,
EventType
.
ALWAYS_LOG
,
this
.
toString
().
toLowerCase
().
replace
(
"_"
,
"-"
),
FlowReconcileQueryDebugEvent
.
class
,
this
.
getDescription
(),
500
);
EventType
.
ALWAYS_LOG
,
FlowReconcileQueryDebugEvent
.
class
,
500
);
}
catch
(
MaxEventsRegistered
e
)
{
}
catch
(
MaxEventsRegistered
e
)
{
throw
e
;
throw
e
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment