-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4964 add information about lacp connection status for lag ports #5040
Open
durgakako
wants to merge
11
commits into
develop
Choose a base branch
from
4964-add-information-about-lacp-connection-status-for-lag-ports
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b46470c
Issue-4964 Add information about LACP connection status model updates
564e7e1
Lacp status model, migration script typo fix
4e135a7
Issue-4964 LACP connection status API updates
durgakako cc2abfc
Issue-4964 LACP connection status API updates - Updated checkstyle is…
durgakako bb072f4
Issue-4964 Add NB API on LACP connection status
durgakako 4a2c83a
Issue-4964 Update NB API to get LACP connection status
durgakako ffeebda
#4964 LACP status - Updated based on review comments
0185f4a
#4964 LACP status - Updated based on review comments
ab272d6
Merge from develop
a153cf4
Renamed Migration Files
670114d
Merge from develop
durgakako File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
docker/db-migration/migrations/024-add-lacp-partner-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: tag | ||
author: dkakollu | ||
changes: | ||
- tagDatabase: | ||
tag: 024-add-lacp-partner-class | ||
|
||
- changeSet: | ||
id: add-lacp-partner-class | ||
author: dkakollu | ||
changes: | ||
- sql: "CREATE CLASS lacp_partner IF NOT EXISTS EXTENDS V" | ||
- sql: "CREATE PROPERTY lacp_partner.switch_id IF NOT EXISTS STRING" | ||
- sql: "CREATE PROPERTY lacp_partner.logical_port_number IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.system_priority IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.system_id IF NOT EXISTS STRING" | ||
- sql: "CREATE PROPERTY lacp_partner.key IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.port_priority IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.port_number IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.state_active IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_short_timeout IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_aggregatable IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_synchronised IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_collecting IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_distributing IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_defaulted IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_expired IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE INDEX lacp_partner.switch_id IF NOT EXISTS NOTUNIQUE_HASH_INDEX" | ||
- sql: "CREATE INDEX lacp_partner.logical_port_number IF NOT EXISTS NOTUNIQUE_HASH_INDEX" | ||
|
||
rollback: | ||
- sql: "DELETE VERTEX lacp_partner" | ||
- sql: "DROP CLASS lacp_partner IF EXISTS" |
34 changes: 34 additions & 0 deletions
34
docker/db-migration/migrations/026-add-lacp-partner-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: tag | ||
author: dkakollu | ||
changes: | ||
- tagDatabase: | ||
tag: 024-add-lacp-partner-class | ||
|
||
- changeSet: | ||
id: add-lacp-partner-class | ||
author: dkakollu | ||
changes: | ||
- sql: "CREATE CLASS lacp_partner IF NOT EXISTS EXTENDS V" | ||
- sql: "CREATE PROPERTY lacp_partner.switch_id IF NOT EXISTS STRING" | ||
- sql: "CREATE PROPERTY lacp_partner.logical_port_number IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.system_priority IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.system_id IF NOT EXISTS STRING" | ||
- sql: "CREATE PROPERTY lacp_partner.key IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.port_priority IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.port_number IF NOT EXISTS INTEGER" | ||
- sql: "CREATE PROPERTY lacp_partner.state_active IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_short_timeout IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_aggregatable IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_synchronised IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_collecting IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_distributing IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_defaulted IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE PROPERTY lacp_partner.state_expired IF NOT EXISTS BOOLEAN" | ||
- sql: "CREATE INDEX lacp_partner.switch_id IF NOT EXISTS NOTUNIQUE_HASH_INDEX" | ||
- sql: "CREATE INDEX lacp_partner.logical_port_number IF NOT EXISTS NOTUNIQUE_HASH_INDEX" | ||
|
||
rollback: | ||
- sql: "DELETE VERTEX lacp_partner" | ||
- sql: "DROP CLASS lacp_partner IF EXISTS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...opology/base-messaging/src/main/java/org/openkilda/messaging/info/event/LacpInfoData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* Copyright 2023 Telstra Open Source | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.openkilda.messaging.info.event; | ||
|
||
import org.openkilda.messaging.info.InfoData; | ||
import org.openkilda.model.SwitchId; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) | ||
public class LacpInfoData extends InfoData { | ||
SwitchId switchId; | ||
int logicalPortNumber; | ||
LacpPartner actor; | ||
} |
41 changes: 41 additions & 0 deletions
41
...topology/base-messaging/src/main/java/org/openkilda/messaging/info/event/LacpPartner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Copyright 2023 Telstra Open Source | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.openkilda.messaging.info.event; | ||
|
||
import org.openkilda.model.MacAddress; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) | ||
public class LacpPartner implements Serializable { | ||
int systemPriority; | ||
MacAddress systemId; | ||
int key; | ||
int portPriority; | ||
int portNumber; | ||
LacpState state; | ||
} |
41 changes: 41 additions & 0 deletions
41
...e-topology/base-messaging/src/main/java/org/openkilda/messaging/info/event/LacpState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Copyright 2023 Telstra Open Source | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.openkilda.messaging.info.event; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) | ||
public class LacpState implements Serializable { | ||
boolean active; | ||
boolean shortTimeout; | ||
boolean aggregatable; | ||
boolean synchronised; | ||
boolean collecting; | ||
boolean distributing; | ||
boolean defaulted; | ||
boolean expired; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to add
LACP_SPOUT_ID
into input of RouterBolt. It should beThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.