Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show relation "security group belongs to router and subnet"
Two foreign keys have been added to the SecurityGroup model recently: ``` security_group.network_router security_group.cloud_subnet ``` With this commit we show them both on UI in both directions. Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
- Loading branch information
1 parent
e8a7289
commit a5f280b
Showing
11 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#main_div | ||
- if ["instances", "cloud_subnets", "network_ports"].include?(@display) && @showtype != "compare" | ||
- if ["instances", "cloud_subnets", "network_ports", "security_groups"].include?(@display) && @showtype != "compare" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => "show/#{@record.id}"} | ||
- elsif @showtype == 'main' | ||
= render :partial => "layouts/textual_groups_generic" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#main_div | ||
- if %w(instances cloud_subnets floating_ips).include?(@display) && @showtype != "compare" | ||
- if %w(instances cloud_subnets floating_ips security_groups).include?(@display) && @showtype != "compare" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => "show/#{@record.id}"} | ||
- elsif @showtype == 'main' | ||
= render :partial => "layouts/textual_groups_generic" |
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 |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
parent_subnet | ||
managed_subnets | ||
network_ports | ||
security_groups | ||
) | ||
end |
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 |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
cloud_subnets | ||
external_gateway | ||
floating_ips | ||
security_groups | ||
) | ||
end |
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 |
---|---|---|
|
@@ -24,5 +24,7 @@ | |
instances | ||
orchestration_stack | ||
network_ports | ||
network_router | ||
cloud_subnet | ||
) | ||
end |