Skip to content

Commit

Permalink
Merge pull request #587 from Security-Onion-Solutions/jertel/v2imgs
Browse files Browse the repository at this point in the history
v2 images
  • Loading branch information
jertel authored Jul 22, 2024
2 parents 01610f5 + bb5a4a7 commit 14fe15d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
Binary file added html/images/appliances/5000v2_back_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/5000v2_front_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/500v2_back_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/500v2_front_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/MNv2_back_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/MNv2_front_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/NVv2_back_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/appliances/NVv2_front_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions model/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ func (node *Node) SetModel(model string) {
node.ImageFront = "so-cloud-azure.jpg"
case "SO2GCI01":
node.ImageFront = "so-cloud-gcp.jpg"
case "500-DE02":
node.ImageFront = "500v2_front_thumb.jpg"
node.ImageBack = "500v2_back_thumb.jpg"
case "MN-DE02", "1000-DE02", "2000-DE02":
node.ImageFront = "MNv2_front_thumb.jpg"
node.ImageBack = "MNv2_back_thumb.jpg"
case "5000-DE02", "SN7200-DE02":
node.ImageFront = "5000v2_front_thumb.jpg"
node.ImageBack = "5000v2_back_thumb.jpg"
case "SNNV-DE02", "10K-DE02":
node.ImageFront = "NVv2_front_thumb.jpg"
node.ImageBack = "NVv2_back_thumb.jpg"
default:
node.Model = "N/A"
}
Expand Down
8 changes: 8 additions & 0 deletions model/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ func TestSetModel(tester *testing.T) {
testModel(tester, "SO2AMI01", "SO2AMI01", "so-cloud-aws.jpg", "")
testModel(tester, "SO2AZI01", "SO2AZI01", "so-cloud-azure.jpg", "")
testModel(tester, "SO2GCI01", "SO2GCI01", "so-cloud-gcp.jpg", "")
testModel(tester, "500-DE02", "500-DE02", "500v2_front_thumb.jpg", "500v2_back_thumb.jpg")
testModel(tester, "MN-DE02", "MN-DE02", "MNv2_front_thumb.jpg", "MNv2_back_thumb.jpg")
testModel(tester, "1000-DE02", "1000-DE02", "MNv2_front_thumb.jpg", "MNv2_back_thumb.jpg")
testModel(tester, "2000-DE02", "2000-DE02", "MNv2_front_thumb.jpg", "MNv2_back_thumb.jpg")
testModel(tester, "5000-DE02", "5000-DE02", "5000v2_front_thumb.jpg", "5000v2_back_thumb.jpg")
testModel(tester, "SN7200-DE02", "SN7200-DE02", "5000v2_front_thumb.jpg", "5000v2_back_thumb.jpg")
testModel(tester, "10K-DE02", "10K-DE02", "NVv2_front_thumb.jpg", "NVv2_back_thumb.jpg")
testModel(tester, "SNNV-DE02", "SNNV-DE02", "NVv2_front_thumb.jpg", "NVv2_back_thumb.jpg")
}

func testStatus(tester *testing.T,
Expand Down

0 comments on commit 14fe15d

Please sign in to comment.