diff --git a/pkg/netpol/internal/common/connectionset.go b/pkg/netpol/internal/common/connectionset.go index 63763e44..29b4544f 100644 --- a/pkg/netpol/internal/common/connectionset.go +++ b/pkg/netpol/internal/common/connectionset.go @@ -313,6 +313,8 @@ const ( connsAndPortRangeSeparator = "," allConnsStr = "All Connections" noConnsStr = "No Connections" + complemetPrefix = "All but: " + empty = "Empty" ) func ConnStrFromConnProperties(allProtocolsAndPorts bool, protocolsAndPorts map[v1.Protocol][]PortRange) string { @@ -325,16 +327,42 @@ func ConnStrFromConnProperties(allProtocolsAndPorts bool, protocolsAndPorts map[ var connStr string // connStrings will contain the string of given conns protocols and ports as is connStrings := make([]string, len(protocolsAndPorts)) + // connAsComplementStr will contain the conns' as "All but" + conns complement to the All conns + connAsComplementStr := make([]string, 0) index := 0 for protocol, ports := range protocolsAndPorts { connStrings[index] = protocolAndPortsStr(protocol, portsString(ports)) index++ + // complement conn string + complementPortsStr := getComplementPorts(ports) + if complementPortsStr == empty || complementPortsStr == "" { // ports is full range + continue + } + connAsComplementStr = append(connAsComplementStr, protocolAndPortsStr(protocol, complementPortsStr)) } sort.Strings(connStrings) + sort.Strings(connAsComplementStr) connStr = strings.Join(connStrings, connsAndPortRangeSeparator) + complementStr := complemetPrefix + strings.Join(connAsComplementStr, connsAndPortRangeSeparator) + // return the shorter string as the representation + if len(complementStr) < len(connStr) { + return complementStr + } return connStr } +// getComplementPorts computes and returns string representation of the complement intervals of given ports +func getComplementPorts(ports []PortRange) string { + // create canonicalSet with all possible port ranges + complementCanonicalSet := interval.New(minPort, maxPort).ToSet() + // loop ports and subtract them from the full canonicalSet to get the complement + for i := range ports { + currCanonicalSet := (ports[i].(*portRange).Interval).ToSet() + complementCanonicalSet = complementCanonicalSet.Subtract(currCanonicalSet) + } + return complementCanonicalSet.String() +} + // get string representation for a list of port ranges func portsString(ports []PortRange) string { portsStr := make([]string, len(ports)) diff --git a/test_outputs/connlist/anp_demo_connlist_output.csv b/test_outputs/connlist/anp_demo_connlist_output.csv index 8f322df8..48b4472f 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.csv +++ b/test_outputs/connlist/anp_demo_connlist_output.csv @@ -4,10 +4,10 @@ src,dst,conn gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections gryffindor/harry-potter[StatefulSet],hufflepuff/cedric-diggory[StatefulSet],"SCTP 9003,TCP 8080,UDP 5353" gryffindor/harry-potter[StatefulSet],ravenclaw/luna-lovegood[StatefulSet],UDP 52 -gryffindor/harry-potter[StatefulSet],slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +gryffindor/harry-potter[StatefulSet],slytherin/draco-malfoy[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections hufflepuff/cedric-diggory[StatefulSet],gryffindor/harry-potter[StatefulSet],"SCTP 9003,TCP 80,UDP 5353" slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections slytherin/draco-malfoy[StatefulSet],gryffindor/harry-potter[StatefulSet],All Connections slytherin/draco-malfoy[StatefulSet],hufflepuff/cedric-diggory[StatefulSet],All Connections -slytherin/draco-malfoy[StatefulSet],ravenclaw/luna-lovegood[StatefulSet],"TCP 1-79,81-65535" +slytherin/draco-malfoy[StatefulSet],ravenclaw/luna-lovegood[StatefulSet],All but: TCP 80 diff --git a/test_outputs/connlist/anp_demo_connlist_output.dot b/test_outputs/connlist/anp_demo_connlist_output.dot index 9a936e47..b2726a5e 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.dot +++ b/test_outputs/connlist/anp_demo_connlist_output.dot @@ -29,11 +29,11 @@ digraph { "gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "gryffindor/harry-potter[StatefulSet]" -> "hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "gryffindor/harry-potter[StatefulSet]" -> "ravenclaw/luna-lovegood[StatefulSet]" [label="UDP 52" color="gold2" fontcolor="darkgreen" weight=0.5] - "gryffindor/harry-potter[StatefulSet]" -> "slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "gryffindor/harry-potter[StatefulSet]" -> "slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=0.5] "hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "hufflepuff/cedric-diggory[StatefulSet]" -> "gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "slytherin/draco-malfoy[StatefulSet]" -> "gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "slytherin/draco-malfoy[StatefulSet]" -> "hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "slytherin/draco-malfoy[StatefulSet]" -> "ravenclaw/luna-lovegood[StatefulSet]" [label="TCP 1-79,81-65535" color="gold2" fontcolor="darkgreen" weight=1] + "slytherin/draco-malfoy[StatefulSet]" -> "ravenclaw/luna-lovegood[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_demo_connlist_output.dot.png b/test_outputs/connlist/anp_demo_connlist_output.dot.png index 5b4cb301..f7e853fd 100644 Binary files a/test_outputs/connlist/anp_demo_connlist_output.dot.png and b/test_outputs/connlist/anp_demo_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_demo_connlist_output.dot.svg b/test_outputs/connlist/anp_demo_connlist_output.dot.svg index 7147c9af..05db55c0 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_demo_connlist_output.dot.svg @@ -4,143 +4,143 @@ - + - - -cluster_hufflepuff - -hufflepuff - + cluster_ravenclaw - -ravenclaw + +ravenclaw + + +cluster_slytherin + +slytherin cluster_gryffindor - -gryffindor + +gryffindor - -cluster_slytherin - -slytherin + +cluster_hufflepuff + +hufflepuff gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] gryffindor/harry-potter[StatefulSet]->hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003,TCP 8080,UDP 5353 + + +SCTP 9003,TCP 8080,UDP 5353 ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] gryffindor/harry-potter[StatefulSet]->ravenclaw/luna-lovegood[StatefulSet] - - -UDP 52 + + +UDP 52 slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] gryffindor/harry-potter[StatefulSet]->slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections hufflepuff/cedric-diggory[StatefulSet]->gryffindor/harry-potter[StatefulSet] - - -SCTP 9003,TCP 80,UDP 5353 + + +SCTP 9003,TCP 80,UDP 5353 hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections slytherin/draco-malfoy[StatefulSet]->gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections slytherin/draco-malfoy[StatefulSet]->hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections slytherin/draco-malfoy[StatefulSet]->ravenclaw/luna-lovegood[StatefulSet] - - -TCP 1-79,81-65535 + + +All but: TCP 80 slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_demo_connlist_output.json b/test_outputs/connlist/anp_demo_connlist_output.json index 259f2f69..4b58db06 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.json +++ b/test_outputs/connlist/anp_demo_connlist_output.json @@ -27,7 +27,7 @@ { "src": "gryffindor/harry-potter[StatefulSet]", "dst": "slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "hufflepuff/cedric-diggory[StatefulSet]", @@ -57,6 +57,6 @@ { "src": "slytherin/draco-malfoy[StatefulSet]", "dst": "ravenclaw/luna-lovegood[StatefulSet]", - "conn": "TCP 1-79,81-65535" + "conn": "All but: TCP 80" } ] \ No newline at end of file diff --git a/test_outputs/connlist/anp_demo_connlist_output.md b/test_outputs/connlist/anp_demo_connlist_output.md index 3e2d9fb7..83a0e9b8 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.md +++ b/test_outputs/connlist/anp_demo_connlist_output.md @@ -5,10 +5,10 @@ | gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | gryffindor/harry-potter[StatefulSet] | hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003,TCP 8080,UDP 5353 | | gryffindor/harry-potter[StatefulSet] | ravenclaw/luna-lovegood[StatefulSet] | UDP 52 | -| gryffindor/harry-potter[StatefulSet] | slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| gryffindor/harry-potter[StatefulSet] | slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | hufflepuff/cedric-diggory[StatefulSet] | gryffindor/harry-potter[StatefulSet] | SCTP 9003,TCP 80,UDP 5353 | | slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | slytherin/draco-malfoy[StatefulSet] | gryffindor/harry-potter[StatefulSet] | All Connections | | slytherin/draco-malfoy[StatefulSet] | hufflepuff/cedric-diggory[StatefulSet] | All Connections | -| slytherin/draco-malfoy[StatefulSet] | ravenclaw/luna-lovegood[StatefulSet] | TCP 1-79,81-65535 | +| slytherin/draco-malfoy[StatefulSet] | ravenclaw/luna-lovegood[StatefulSet] | All but: TCP 80 | diff --git a/test_outputs/connlist/anp_demo_connlist_output.txt b/test_outputs/connlist/anp_demo_connlist_output.txt index 1706421e..164b3f4c 100644 --- a/test_outputs/connlist/anp_demo_connlist_output.txt +++ b/test_outputs/connlist/anp_demo_connlist_output.txt @@ -3,10 +3,10 @@ gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections gryffindor/harry-potter[StatefulSet] => hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003,TCP 8080,UDP 5353 gryffindor/harry-potter[StatefulSet] => ravenclaw/luna-lovegood[StatefulSet] : UDP 52 -gryffindor/harry-potter[StatefulSet] => slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +gryffindor/harry-potter[StatefulSet] => slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections hufflepuff/cedric-diggory[StatefulSet] => gryffindor/harry-potter[StatefulSet] : SCTP 9003,TCP 80,UDP 5353 slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections slytherin/draco-malfoy[StatefulSet] => gryffindor/harry-potter[StatefulSet] : All Connections slytherin/draco-malfoy[StatefulSet] => hufflepuff/cedric-diggory[StatefulSet] : All Connections -slytherin/draco-malfoy[StatefulSet] => ravenclaw/luna-lovegood[StatefulSet] : TCP 1-79,81-65535 +slytherin/draco-malfoy[StatefulSet] => ravenclaw/luna-lovegood[StatefulSet] : All but: TCP 80 diff --git a/test_outputs/connlist/anp_test_10_connlist_output.csv b/test_outputs/connlist/anp_test_10_connlist_output.csv index 85b65806..2c1693b5 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.csv +++ b/test_outputs/connlist/anp_test_10_connlist_output.csv @@ -10,7 +10,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-c network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_10_connlist_output.dot b/test_outputs/connlist/anp_test_10_connlist_output.dot index b35f3a2d..5ca3de47 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.dot +++ b/test_outputs/connlist/anp_test_10_connlist_output.dot @@ -35,7 +35,7 @@ digraph { "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="UDP 53" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/anp_test_10_connlist_output.dot.png b/test_outputs/connlist/anp_test_10_connlist_output.dot.png index aa631cb4..6723df16 100644 Binary files a/test_outputs/connlist/anp_test_10_connlist_output.dot.png and b/test_outputs/connlist/anp_test_10_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_10_connlist_output.dot.svg b/test_outputs/connlist/anp_test_10_connlist_output.dot.svg index 31bfb082..1b3456ae 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_10_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_10_connlist_output.json b/test_outputs/connlist/anp_test_10_connlist_output.json index 66a96e5a..653979d8 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.json +++ b/test_outputs/connlist/anp_test_10_connlist_output.json @@ -57,7 +57,7 @@ { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_10_connlist_output.md b/test_outputs/connlist/anp_test_10_connlist_output.md index 30bbb191..54d72fd6 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.md +++ b/test_outputs/connlist/anp_test_10_connlist_output.md @@ -11,7 +11,7 @@ | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | UDP 53 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_10_connlist_output.txt b/test_outputs/connlist/anp_test_10_connlist_output.txt index 55ab08ca..d96ac428 100644 --- a/test_outputs/connlist/anp_test_10_connlist_output.txt +++ b/test_outputs/connlist/anp_test_10_connlist_output.txt @@ -9,7 +9,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-polic network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_10_swapping_rules_connlist_output.txt b/test_outputs/connlist/anp_test_10_swapping_rules_connlist_output.txt index 5b5b5759..e1bab7f7 100644 --- a/test_outputs/connlist/anp_test_10_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/anp_test_10_swapping_rules_connlist_output.txt @@ -7,7 +7,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-polic network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_11_connlist_output.csv b/test_outputs/connlist/anp_test_11_connlist_output.csv index 2e5ff073..0f44fa68 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.csv +++ b/test_outputs/connlist/anp_test_11_connlist_output.csv @@ -6,7 +6,7 @@ src,dst,conn network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],TCP 8080 network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_11_connlist_output.dot b/test_outputs/connlist/anp_test_11_connlist_output.dot index 66c2a293..f20106ea 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.dot +++ b/test_outputs/connlist/anp_test_11_connlist_output.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="TCP 8080" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] diff --git a/test_outputs/connlist/anp_test_11_connlist_output.dot.png b/test_outputs/connlist/anp_test_11_connlist_output.dot.png index f8185e67..ef4823d4 100644 Binary files a/test_outputs/connlist/anp_test_11_connlist_output.dot.png and b/test_outputs/connlist/anp_test_11_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_11_connlist_output.dot.svg b/test_outputs/connlist/anp_test_11_connlist_output.dot.svg index 2ecc5082..d1158c91 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_11_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-hufflepuff network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -TCP 8080 + + +TCP 8080 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_11_connlist_output.json b/test_outputs/connlist/anp_test_11_connlist_output.json index e22513a2..f2bb98e0 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.json +++ b/test_outputs/connlist/anp_test_11_connlist_output.json @@ -37,7 +37,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_11_connlist_output.md b/test_outputs/connlist/anp_test_11_connlist_output.md index f2e969ce..5cc3c343 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.md +++ b/test_outputs/connlist/anp_test_11_connlist_output.md @@ -7,7 +7,7 @@ | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | TCP 8080 | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: TCP 80 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_11_connlist_output.txt b/test_outputs/connlist/anp_test_11_connlist_output.txt index c9c90ad7..6f2da894 100644 --- a/test_outputs/connlist/anp_test_11_connlist_output.txt +++ b/test_outputs/connlist/anp_test_11_connlist_output.txt @@ -5,7 +5,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : TCP 8080 network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_12_connlist_output.csv b/test_outputs/connlist/anp_test_12_connlist_output.csv index aca823d6..dfe2b805 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.csv +++ b/test_outputs/connlist/anp_test_12_connlist_output.csv @@ -14,7 +14,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_12_connlist_output.dot b/test_outputs/connlist/anp_test_12_connlist_output.dot index e39813fe..ecb0a4c1 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.dot +++ b/test_outputs/connlist/anp_test_12_connlist_output.dot @@ -39,7 +39,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/anp_test_12_connlist_output.dot.png b/test_outputs/connlist/anp_test_12_connlist_output.dot.png index 7b7e4d6d..15cb96ca 100644 Binary files a/test_outputs/connlist/anp_test_12_connlist_output.dot.png and b/test_outputs/connlist/anp_test_12_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_12_connlist_output.dot.svg b/test_outputs/connlist/anp_test_12_connlist_output.dot.svg index 2b7b104b..449c54fa 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_12_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_12_connlist_output.json b/test_outputs/connlist/anp_test_12_connlist_output.json index a89f1ecd..7dae960c 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.json +++ b/test_outputs/connlist/anp_test_12_connlist_output.json @@ -77,7 +77,7 @@ { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_12_connlist_output.md b/test_outputs/connlist/anp_test_12_connlist_output.md index 68a91265..3ef1139f 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.md +++ b/test_outputs/connlist/anp_test_12_connlist_output.md @@ -15,7 +15,7 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003 | -| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_12_connlist_output.txt b/test_outputs/connlist/anp_test_12_connlist_output.txt index 5449b973..43445455 100644 --- a/test_outputs/connlist/anp_test_12_connlist_output.txt +++ b/test_outputs/connlist/anp_test_12_connlist_output.txt @@ -13,7 +13,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-pol network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_3_pass_traffic_connlist_output.txt b/test_outputs/connlist/anp_test_3_pass_traffic_connlist_output.txt index a07f409b..c990cea3 100644 --- a/test_outputs/connlist/anp_test_3_pass_traffic_connlist_output.txt +++ b/test_outputs/connlist/anp_test_3_pass_traffic_connlist_output.txt @@ -4,7 +4,7 @@ bar-ns/bar[Deployment] => 0.0.0.0-255.255.255.255 : All Connections bar-ns/bar[Deployment] => foo-ns-1/foo[Deployment] : All Connections bar-ns/bar[Deployment] => foo-ns-2/foo[Deployment] : All Connections -foo-ns-1/foo[Deployment] => bar-ns/bar[Deployment] : TCP 1-8079,8081-65535 +foo-ns-1/foo[Deployment] => bar-ns/bar[Deployment] : All but: TCP 8080 foo-ns-2/foo[Deployment] => 0.0.0.0-255.255.255.255 : All Connections foo-ns-2/foo[Deployment] => bar-ns/bar[Deployment] : All Connections foo-ns-2/foo[Deployment] => foo-ns-1/foo[Deployment] : All Connections diff --git a/test_outputs/connlist/anp_test_6_connlist_output.csv b/test_outputs/connlist/anp_test_6_connlist_output.csv index a2473c0e..231e6988 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.csv +++ b/test_outputs/connlist/anp_test_6_connlist_output.csv @@ -17,5 +17,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_6_connlist_output.dot b/test_outputs/connlist/anp_test_6_connlist_output.dot index e23d7d06..39c1e9be 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.dot +++ b/test_outputs/connlist/anp_test_6_connlist_output.dot @@ -42,6 +42,6 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_6_connlist_output.dot.png b/test_outputs/connlist/anp_test_6_connlist_output.dot.png index bc57e387..e4f2f20e 100644 Binary files a/test_outputs/connlist/anp_test_6_connlist_output.dot.png and b/test_outputs/connlist/anp_test_6_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_6_connlist_output.dot.svg b/test_outputs/connlist/anp_test_6_connlist_output.dot.svg index e0886116..241f8970 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_6_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_6_connlist_output.json b/test_outputs/connlist/anp_test_6_connlist_output.json index 68a1a68e..7b04804a 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.json +++ b/test_outputs/connlist/anp_test_6_connlist_output.json @@ -92,7 +92,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_6_connlist_output.md b/test_outputs/connlist/anp_test_6_connlist_output.md index 3c0cbac6..d3c0d3af 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.md +++ b/test_outputs/connlist/anp_test_6_connlist_output.md @@ -18,5 +18,5 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_6_connlist_output.txt b/test_outputs/connlist/anp_test_6_connlist_output.txt index b1b1b7d4..f314ede9 100644 --- a/test_outputs/connlist/anp_test_6_connlist_output.txt +++ b/test_outputs/connlist/anp_test_6_connlist_output.txt @@ -16,5 +16,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_6_swapping_rules_connlist_output.txt b/test_outputs/connlist/anp_test_6_swapping_rules_connlist_output.txt index 1cd57bd7..ac0653fa 100644 --- a/test_outputs/connlist/anp_test_6_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/anp_test_6_swapping_rules_connlist_output.txt @@ -15,5 +15,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5000 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_7_connlist_output.csv b/test_outputs/connlist/anp_test_7_connlist_output.csv index 632fda82..b1f2518c 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.csv +++ b/test_outputs/connlist/anp_test_7_connlist_output.csv @@ -16,6 +16,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_7_connlist_output.dot b/test_outputs/connlist/anp_test_7_connlist_output.dot index ec371ee9..7ebaf1cc 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.dot +++ b/test_outputs/connlist/anp_test_7_connlist_output.dot @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_7_connlist_output.dot.png b/test_outputs/connlist/anp_test_7_connlist_output.dot.png index c112e33e..d742ab2d 100644 Binary files a/test_outputs/connlist/anp_test_7_connlist_output.dot.png and b/test_outputs/connlist/anp_test_7_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_7_connlist_output.dot.svg b/test_outputs/connlist/anp_test_7_connlist_output.dot.svg index 94fc6b93..420f5bad 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_7_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -TCP 80 + + +TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_7_connlist_output.json b/test_outputs/connlist/anp_test_7_connlist_output.json index ed7860d6..a1160cbe 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.json +++ b/test_outputs/connlist/anp_test_7_connlist_output.json @@ -87,7 +87,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_7_connlist_output.md b/test_outputs/connlist/anp_test_7_connlist_output.md index cd2d8c2b..29f76a85 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.md +++ b/test_outputs/connlist/anp_test_7_connlist_output.md @@ -17,6 +17,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: TCP 80 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_7_connlist_output.txt b/test_outputs/connlist/anp_test_7_connlist_output.txt index 9f9793ed..e5bb924d 100644 --- a/test_outputs/connlist/anp_test_7_connlist_output.txt +++ b/test_outputs/connlist/anp_test_7_connlist_output.txt @@ -15,6 +15,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_8_connlist_output.csv b/test_outputs/connlist/anp_test_8_connlist_output.csv index 9d54d3a1..8e4406ba 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.csv +++ b/test_outputs/connlist/anp_test_8_connlist_output.csv @@ -18,4 +18,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All but: SCTP 9003 diff --git a/test_outputs/connlist/anp_test_8_connlist_output.dot b/test_outputs/connlist/anp_test_8_connlist_output.dot index 35c6c806..da8ac744 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.dot +++ b/test_outputs/connlist/anp_test_8_connlist_output.dot @@ -43,5 +43,5 @@ digraph { "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_8_connlist_output.dot.png b/test_outputs/connlist/anp_test_8_connlist_output.dot.png index e5dae031..ccb2e8d4 100644 Binary files a/test_outputs/connlist/anp_test_8_connlist_output.dot.png and b/test_outputs/connlist/anp_test_8_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_8_connlist_output.dot.svg b/test_outputs/connlist/anp_test_8_connlist_output.dot.svg index 0ef8eedf..07b45a6c 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_8_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_8_connlist_output.json b/test_outputs/connlist/anp_test_8_connlist_output.json index 4d4bc09c..f8544d54 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.json +++ b/test_outputs/connlist/anp_test_8_connlist_output.json @@ -97,6 +97,6 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" } ] \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_8_connlist_output.md b/test_outputs/connlist/anp_test_8_connlist_output.md index c79acb6b..fa640a7f 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.md +++ b/test_outputs/connlist/anp_test_8_connlist_output.md @@ -19,4 +19,4 @@ | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All but: SCTP 9003 | diff --git a/test_outputs/connlist/anp_test_8_connlist_output.txt b/test_outputs/connlist/anp_test_8_connlist_output.txt index 5bbd82b7..a294dad0 100644 --- a/test_outputs/connlist/anp_test_8_connlist_output.txt +++ b/test_outputs/connlist/anp_test_8_connlist_output.txt @@ -17,4 +17,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All but: SCTP 9003 diff --git a/test_outputs/connlist/anp_test_9_connlist_output.csv b/test_outputs/connlist/anp_test_9_connlist_output.csv index e09d5b5f..39ae32e4 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.csv +++ b/test_outputs/connlist/anp_test_9_connlist_output.csv @@ -6,7 +6,7 @@ src,dst,conn network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 9003,TCP 8080,UDP 5353" network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 9003,TCP 80,UDP 5353" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections @@ -16,6 +16,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/anp_test_9_connlist_output.dot b/test_outputs/connlist/anp_test_9_connlist_output.dot index 0c0cae6b..03d516fe 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.dot +++ b/test_outputs/connlist/anp_test_9_connlist_output.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_9_connlist_output.dot.png b/test_outputs/connlist/anp_test_9_connlist_output.dot.png index 5c0a6722..8602ee28 100644 Binary files a/test_outputs/connlist/anp_test_9_connlist_output.dot.png and b/test_outputs/connlist/anp_test_9_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_9_connlist_output.dot.svg b/test_outputs/connlist/anp_test_9_connlist_output.dot.svg index 8d35382e..0236cfdf 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_9_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003,TCP 8080,UDP 5353 + + +SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 9003,TCP 80,UDP 5353 + + +SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_9_connlist_output.json b/test_outputs/connlist/anp_test_9_connlist_output.json index 684b2b01..9d35fe85 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.json +++ b/test_outputs/connlist/anp_test_9_connlist_output.json @@ -37,7 +37,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", @@ -87,7 +87,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/anp_test_9_connlist_output.md b/test_outputs/connlist/anp_test_9_connlist_output.md index 5410547d..c034b0df 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.md +++ b/test_outputs/connlist/anp_test_9_connlist_output.md @@ -7,7 +7,7 @@ | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003,TCP 8080,UDP 5353 | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 9003,TCP 80,UDP 5353 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | @@ -17,6 +17,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/anp_test_9_connlist_output.txt b/test_outputs/connlist/anp_test_9_connlist_output.txt index 537fc0cd..98632b3f 100644 --- a/test_outputs/connlist/anp_test_9_connlist_output.txt +++ b/test_outputs/connlist/anp_test_9_connlist_output.txt @@ -5,7 +5,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections @@ -15,6 +15,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_combining_test_6_and_test_10_connlist_output.txt b/test_outputs/connlist/anp_test_combining_test_6_and_test_10_connlist_output.txt index 918c3fe4..8aacbdce 100644 --- a/test_outputs/connlist/anp_test_combining_test_6_and_test_10_connlist_output.txt +++ b/test_outputs/connlist/anp_test_combining_test_6_and_test_10_connlist_output.txt @@ -9,12 +9,12 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-polic network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.csv b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.csv index 5eab334a..e3d485ff 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.csv +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.csv @@ -3,14 +3,14 @@ src,dst,conn 0.0.0.0-255.255.255.255,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections 0.0.0.0-255.255.255.255,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],SCTP 9003 -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All but: UDP 5353 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All but: SCTP 9003 diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot index 3cd1c146..0fceb0cd 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot @@ -28,15 +28,15 @@ digraph { "0.0.0.0-255.255.255.255" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "0.0.0.0-255.255.255.255" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 9003" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.png b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.png index 73ca32dd..43b9a01f 100644 Binary files a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.png and b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.svg b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.svg index f8072660..aa0e06bc 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.dot.svg @@ -4,164 +4,164 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - + cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.json b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.json index b938c05b..b23093d7 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.json +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.json @@ -22,7 +22,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", @@ -37,7 +37,7 @@ { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", @@ -57,7 +57,7 @@ { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", @@ -67,11 +67,11 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" } ] \ No newline at end of file diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.md b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.md index 4478c461..11d0ce9c 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.md +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.md @@ -4,14 +4,14 @@ | 0.0.0.0-255.255.255.255 | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | | 0.0.0.0-255.255.255.255 | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: TCP 80 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 9003 | -| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003 | -| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All but: UDP 5353 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All but: SCTP 9003 | diff --git a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.txt b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.txt index fbcc9dde..c8edc6d6 100644 --- a/test_outputs/connlist/anp_test_multiple_anps_connlist_output.txt +++ b/test_outputs/connlist/anp_test_multiple_anps_connlist_output.txt @@ -2,14 +2,14 @@ 0.0.0.0-255.255.255.255 => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections 0.0.0.0-255.255.255.255 => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : SCTP 9003 -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5353 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All but: SCTP 9003 diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.csv b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.csv index 8f5fc91e..e4d246c7 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.csv +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.csv @@ -4,4 +4,4 @@ src,dst,conn ns1/pod1[Deployment],0.0.0.0-255.255.255.255,All Connections ns1/pod1[Deployment],ns2/pod1[Deployment],All Connections ns2/pod1[Deployment],0.0.0.0-255.255.255.255,All Connections -ns2/pod1[Deployment],ns1/pod1[Deployment],"SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535" +ns2/pod1[Deployment],ns1/pod1[Deployment],All but: UDP 80 diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot index c9e82182..74635859 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot @@ -17,5 +17,5 @@ digraph { "ns1/pod1[Deployment]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "ns1/pod1[Deployment]" -> "ns2/pod1[Deployment]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "ns2/pod1[Deployment]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "ns2/pod1[Deployment]" -> "ns1/pod1[Deployment]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535" color="gold2" fontcolor="darkgreen" weight=1] + "ns2/pod1[Deployment]" -> "ns1/pod1[Deployment]" [label="All but: UDP 80" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.png b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.png index 7423fa11..7b2cb158 100644 Binary files a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.png and b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.png differ diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.svg b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.svg index e7d533d0..18bbc83b 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.svg +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.dot.svg @@ -4,79 +4,79 @@ - + - + cluster_ns1 - -ns1 + +ns1 cluster_ns2 - -ns2 + +ns2 ns1/pod1[Deployment] - -pod1[Deployment] + +pod1[Deployment] ns2/pod1[Deployment] - -pod1[Deployment] + +pod1[Deployment] ns1/pod1[Deployment]->ns2/pod1[Deployment] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 ns1/pod1[Deployment]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections ns2/pod1[Deployment]->ns1/pod1[Deployment] - - -SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 + + +All but: UDP 80 ns2/pod1[Deployment]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->ns1/pod1[Deployment] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->ns2/pod1[Deployment] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.json b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.json index 5d3517aa..0d3c2216 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.json +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.json @@ -27,6 +27,6 @@ { "src": "ns2/pod1[Deployment]", "dst": "ns1/pod1[Deployment]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535" + "conn": "All but: UDP 80" } ] \ No newline at end of file diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.md b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.md index 41533442..4c925e76 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.md +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.md @@ -5,4 +5,4 @@ | ns1/pod1[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | | ns1/pod1[Deployment] | ns2/pod1[Deployment] | All Connections | | ns2/pod1[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | -| ns2/pod1[Deployment] | ns1/pod1[Deployment] | SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 | +| ns2/pod1[Deployment] | ns1/pod1[Deployment] | All but: UDP 80 | diff --git a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.txt b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.txt index 626aff82..37bd270e 100644 --- a/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.txt +++ b/test_outputs/connlist/anp_with_banp_pass_test_connlist_output.txt @@ -3,4 +3,4 @@ ns1/pod1[Deployment] => 0.0.0.0-255.255.255.255 : All Connections ns1/pod1[Deployment] => ns2/pod1[Deployment] : All Connections ns2/pod1[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -ns2/pod1[Deployment] => ns1/pod1[Deployment] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +ns2/pod1[Deployment] => ns1/pod1[Deployment] : All but: UDP 80 diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.csv index aca823d6..dfe2b805 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.csv @@ -14,7 +14,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot index e39813fe..ecb0a4c1 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot @@ -39,7 +39,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.png index 7b7e4d6d..15cb96ca 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.svg index 6a0c8e0c..a31a5ed6 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.json index a89f1ecd..7dae960c 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.json @@ -77,7 +77,7 @@ { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.md index 68a91265..3ef1139f 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.md @@ -15,7 +15,7 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003 | -| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.txt index 5449b973..43445455 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_sctp_rules_connlist_output.txt @@ -13,7 +13,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-pol network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.csv index 9530b9c2..e4369b6d 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.csv @@ -13,7 +13,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot index 5594f808..b6757468 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot @@ -38,7 +38,7 @@ digraph { "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.png index 94a15cfb..ca16417a 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.svg index e8fe5b2e..99f68740 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.dot.svg @@ -4,192 +4,192 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.json index 2ab00caa..50ba1aa6 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.json @@ -72,7 +72,7 @@ { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.md index 56dee5c6..d7491e3e 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.md @@ -14,7 +14,7 @@ | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003 | -| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.txt index eca84ee6..6e04415f 100644 --- a/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_sctp_swapping_rules_connlist_output.txt @@ -12,7 +12,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-pol network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003 -network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.csv index 2e5ff073..0f44fa68 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.csv @@ -6,7 +6,7 @@ src,dst,conn network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],TCP 8080 network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot index 66c2a293..f20106ea 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="TCP 8080" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.png index f8185e67..ef4823d4 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.svg index b0c5b536..d16906b5 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -TCP 8080 + + +TCP 8080 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.json index e22513a2..f2bb98e0 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.json @@ -37,7 +37,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.md index f2e969ce..5cc3c343 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.md @@ -7,7 +7,7 @@ | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | TCP 8080 | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: TCP 80 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.txt index c9c90ad7..6f2da894 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_tcp_rules_connlist_output.txt @@ -5,7 +5,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : TCP 8080 network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.csv index 5970b744..c35a9136 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.csv @@ -5,7 +5,7 @@ src,dst,conn 0.0.0.0-255.255.255.255,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot index 3e965650..513ff8ad 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot @@ -30,7 +30,7 @@ digraph { "0.0.0.0-255.255.255.255" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.png index adbed2b7..ee1c6655 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.svg index 0d3f1b50..fdc90d8d 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.dot.svg @@ -4,192 +4,192 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.json index 821ac0ca..82715c2c 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.json @@ -32,7 +32,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.md index da968922..df52aafa 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.md @@ -6,7 +6,7 @@ | 0.0.0.0-255.255.255.255 | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: TCP 80 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.txt index 6e355a36..2c4c483e 100644 --- a/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_tcp_swapping_rules_connlist_output.txt @@ -4,7 +4,7 @@ 0.0.0.0-255.255.255.255 => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.csv index 85b65806..2c1693b5 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.csv @@ -10,7 +10,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-c network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot index b35f3a2d..5ca3de47 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot @@ -35,7 +35,7 @@ digraph { "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="UDP 53" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.png index aa631cb4..6723df16 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.svg index 21554ffd..b425d1ea 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.json index 66a96e5a..653979d8 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.json @@ -57,7 +57,7 @@ { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.md index 30bbb191..54d72fd6 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.md @@ -11,7 +11,7 @@ | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | UDP 53 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.txt index 55ab08ca..d96ac428 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_udp_rules_connlist_output.txt @@ -9,7 +9,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-polic network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.csv index 772b3b38..e3e33095 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.csv @@ -9,7 +9,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-c network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],UDP 53 -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot index ff8167d2..1b84f568 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot @@ -34,7 +34,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="UDP 53" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.png index f5750946..c7122a48 100644 Binary files a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.svg index 66883c28..c514dbea 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.dot.svg @@ -4,29 +4,29 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - + cluster_network_policy_conformance_hufflepuff network-policy-conformance-hufflepuff + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin + cluster_network_policy_conformance_ravenclaw network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor @@ -98,7 +98,7 @@ network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +All but: UDP 5353 @@ -159,9 +159,9 @@ network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections @@ -180,16 +180,16 @@ 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - + All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.json index 06eac75f..56605cdf 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.json @@ -52,7 +52,7 @@ { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.md index feaa25c3..0584914d 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.md @@ -10,7 +10,7 @@ | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | UDP 53 | -| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.txt index f91da0c0..32b0b880 100644 --- a/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_egress_udp_swapping_rules_connlist_output.txt @@ -8,7 +8,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-polic network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : UDP 53 -network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.csv index e09d5b5f..39ae32e4 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.csv @@ -6,7 +6,7 @@ src,dst,conn network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 9003,TCP 8080,UDP 5353" network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 9003,TCP 80,UDP 5353" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections @@ -16,6 +16,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot index 0c0cae6b..03d516fe 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.png index 5c0a6722..8602ee28 100644 Binary files a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.svg index 52252540..53e2065d 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003,TCP 8080,UDP 5353 + + +SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 9003,TCP 80,UDP 5353 + + +SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.json index 684b2b01..9d35fe85 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.json @@ -37,7 +37,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", @@ -87,7 +87,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.md index 5410547d..c034b0df 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.md @@ -7,7 +7,7 @@ | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003,TCP 8080,UDP 5353 | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 9003,TCP 80,UDP 5353 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | @@ -17,6 +17,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.txt index 537fc0cd..98632b3f 100644 --- a/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_gress_rules_connlist_output.txt @@ -5,7 +5,7 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections @@ -15,6 +15,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.csv index 5a5f267c..e20e4fae 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.csv @@ -5,7 +5,7 @@ src,dst,conn 0.0.0.0-255.255.255.255,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 9003,TCP 8080,UDP 5353" -network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 9003,TCP 80,UDP 5353" network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections @@ -14,6 +14,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],0.0.0.0-255.255. network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53" network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot index 95b3b831..31857b9a 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot @@ -30,7 +30,7 @@ digraph { "0.0.0.0-255.255.255.255" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="gold2" fontcolor="darkgreen" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] @@ -39,7 +39,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.png index 23cfa1fd..76844757 100644 Binary files a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.svg index 4593d726..51319da6 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.dot.svg @@ -4,14 +4,14 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_hufflepuff @@ -23,10 +23,10 @@ network-policy-conformance-slytherin - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor @@ -56,9 +56,9 @@ network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 @@ -133,7 +133,7 @@ network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +All but: SCTP 9003,TCP 80,UDP 53 @@ -152,9 +152,9 @@ network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections @@ -180,9 +180,9 @@ 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.json index aa89bf93..aa2c4358 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.json @@ -32,7 +32,7 @@ { "src": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", "dst": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", @@ -77,7 +77,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" + "conn": "All but: SCTP 9003,TCP 80,UDP 53" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.md index d7eae676..f8dad8f1 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.md @@ -6,7 +6,7 @@ | 0.0.0.0-255.255.255.255 | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 9003,TCP 8080,UDP 5353 | -| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 9003,TCP 80,UDP 5353 | | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | @@ -15,6 +15,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.txt index a2a600cf..71f7e5c8 100644 --- a/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_gress_swapping_rules_connlist_output.txt @@ -4,7 +4,7 @@ 0.0.0.0-255.255.255.255 => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 9003,TCP 8080,UDP 5353 -network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-gryffindor/harry-potter[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections @@ -13,6 +13,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => 0.0.0.0-255.2 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.csv index 9d54d3a1..8e4406ba 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.csv @@ -18,4 +18,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All but: SCTP 9003 diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot index 35c6c806..da8ac744 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot @@ -43,5 +43,5 @@ digraph { "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.png index e5dae031..ccb2e8d4 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.svg index 0ef8eedf..d9640c91 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-hufflepuff network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.json index 4d4bc09c..f8544d54 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.json @@ -97,6 +97,6 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" } ] \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.md index c79acb6b..fa640a7f 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.md @@ -19,4 +19,4 @@ | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All but: SCTP 9003 | diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.txt index 5bbd82b7..a294dad0 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_rules_connlist_output.txt @@ -17,4 +17,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All but: SCTP 9003 diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.csv index f5e6101a..65e4291d 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.csv @@ -17,4 +17,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All but: SCTP 9003 diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot index e7389a41..84b05071 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot @@ -42,5 +42,5 @@ digraph { "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All but: SCTP 9003" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.png index b4436628..0bfece83 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.svg index dd73fd8e..57e0361b 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.dot.svg @@ -4,192 +4,192 @@ - + - - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.json index 08f20f9a..27f4df56 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.json @@ -92,6 +92,6 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]", - "conn": "SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" + "conn": "All but: SCTP 9003" } ] \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.md index 3f4a645d..59e90ed5 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.md @@ -18,4 +18,4 @@ | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All but: SCTP 9003 | diff --git a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.txt index 444a72bf..7a187dab 100644 --- a/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_sctp_swapping_rules_connlist_output.txt @@ -16,4 +16,4 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All but: SCTP 9003 diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.csv index 632fda82..b1f2518c 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.csv @@ -16,6 +16,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot index ec371ee9..7ebaf1cc 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.png index c112e33e..d742ab2d 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.svg index 7844733c..b95cd7e4 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -TCP 80 + + +TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.json index ed7860d6..a1160cbe 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.json @@ -87,7 +87,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.md index cd2d8c2b..29f76a85 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.md @@ -17,6 +17,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: TCP 80 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.txt index 9f9793ed..e5bb924d 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_rules_connlist_output.txt @@ -15,6 +15,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.csv index fa622aff..61bd58aa 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.csv @@ -15,6 +15,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot index 11c81ee8..aa9cc271 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot @@ -40,7 +40,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: TCP 80" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.png index 0c428ad5..3ded6898 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.svg index c905f1d8..7e6ccc62 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.dot.svg @@ -4,192 +4,192 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.json index 95ae7ca4..7085f4f2 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.json @@ -82,7 +82,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-gryffindor/harry-potter[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" + "conn": "All but: TCP 80" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.md index f030475e..e1748701 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.md @@ -16,6 +16,6 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: TCP 80 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.txt index 7bf2aa33..7b5640c6 100644 --- a/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_tcp_swapping_rules_connlist_output.txt @@ -14,6 +14,6 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.csv index a2473c0e..231e6988 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.csv @@ -17,5 +17,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot index e23d7d06..39c1e9be 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot @@ -42,6 +42,6 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.png index 1eee43d0..e4f2f20e 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.svg index 772a0a36..c48b7492 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.dot.svg @@ -4,199 +4,199 @@ - + - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.json index 68a1a68e..7b04804a 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.json @@ -92,7 +92,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.md index 3c0cbac6..d3c0d3af 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.md @@ -18,5 +18,5 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.txt index b1b1b7d4..f314ede9 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_udp_rules_connlist_output.txt @@ -16,5 +16,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.csv b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.csv index 8e3e60e0..a4e3550e 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.csv +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.csv @@ -16,5 +16,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-c network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],0.0.0.0-255.255.255.255,All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" +network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot index f8df6c26..b1225490 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot @@ -41,6 +41,6 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="gold2" fontcolor="darkgreen" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5353" color="gold2" fontcolor="darkgreen" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="gold2" fontcolor="darkgreen" weight=1] } \ No newline at end of file diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.png b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.png index fd2e7e45..ea066f3d 100644 Binary files a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.png and b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.png differ diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.svg b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.svg index 8974d9d5..5358f09a 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.svg +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.dot.svg @@ -4,192 +4,192 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.json b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.json index 302dfd78..4fbd07a8 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.json +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.json @@ -87,7 +87,7 @@ { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", "dst": "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]", - "conn": "SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" + "conn": "All but: UDP 5353" }, { "src": "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]", diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.md b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.md index 46d7f155..5f8721f9 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.md +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.md @@ -17,5 +17,5 @@ | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | 0.0.0.0-255.255.255.255 | All Connections | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | -| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | +| network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All but: UDP 5353 | | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | diff --git a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.txt b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.txt index ce768d01..fd879060 100644 --- a/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.txt +++ b/test_outputs/connlist/banp_test_core_ingress_udp_swapping_rules_connlist_output.txt @@ -15,5 +15,5 @@ network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-polic network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] => network-policy-conformance-slytherin/draco-malfoy[StatefulSet] : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => 0.0.0.0-255.255.255.255 : All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-gryffindor/harry-potter[StatefulSet] : All Connections -network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 +network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] : All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet] => network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] : All Connections diff --git a/test_outputs/connlist/test10_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test10_anp_conn_from_parsed_res.txt index 1cde785d..551969d9 100644 --- a/test_outputs/connlist/test10_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test10_anp_conn_from_parsed_res.txt @@ -3,18 +3,18 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/a[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +x/a[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +x/a[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/a[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/b[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +x/b[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/b[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/b[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +y/a[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +y/a[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +y/a[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +y/b[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +y/b[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +y/b[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 diff --git a/test_outputs/connlist/test11_anp_banp_unmatched_ingress_egress_from_parsed_res.txt b/test_outputs/connlist/test11_anp_banp_unmatched_ingress_egress_from_parsed_res.txt index e59de296..4e1bcadb 100644 --- a/test_outputs/connlist/test11_anp_banp_unmatched_ingress_egress_from_parsed_res.txt +++ b/test_outputs/connlist/test11_anp_banp_unmatched_ingress_egress_from_parsed_res.txt @@ -11,10 +11,10 @@ x/b[Pod] => x/a[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 +y/a[Pod] => x/b[Pod] : All but: UDP 80 +y/a[Pod] => y/b[Pod] : All but: UDP 80 y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 +y/b[Pod] => x/b[Pod] : All but: UDP 80 +y/b[Pod] => y/a[Pod] : All but: UDP 80 diff --git a/test_outputs/connlist/test12_anp_banp_unmatched_ingress_egress_from_parsed_res.txt b/test_outputs/connlist/test12_anp_banp_unmatched_ingress_egress_from_parsed_res.txt index 8e9a404a..7dda70b5 100644 --- a/test_outputs/connlist/test12_anp_banp_unmatched_ingress_egress_from_parsed_res.txt +++ b/test_outputs/connlist/test12_anp_banp_unmatched_ingress_egress_from_parsed_res.txt @@ -3,18 +3,18 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/a[Pod] => x/b[Pod] : All but: UDP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/b[Pod] => x/a[Pod] : All but: UDP 80 x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 +y/a[Pod] => x/b[Pod] : All but: UDP 80 y/a[Pod] => y/b[Pod] : All Connections y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 +y/b[Pod] => x/b[Pod] : All but: UDP 80 y/b[Pod] => y/a[Pod] : All Connections diff --git a/test_outputs/connlist/test14_anp_banp_unmatched_ingress_egress_from_parsed_res.txt b/test_outputs/connlist/test14_anp_banp_unmatched_ingress_egress_from_parsed_res.txt index e59de296..4e1bcadb 100644 --- a/test_outputs/connlist/test14_anp_banp_unmatched_ingress_egress_from_parsed_res.txt +++ b/test_outputs/connlist/test14_anp_banp_unmatched_ingress_egress_from_parsed_res.txt @@ -11,10 +11,10 @@ x/b[Pod] => x/a[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 +y/a[Pod] => x/b[Pod] : All but: UDP 80 +y/a[Pod] => y/b[Pod] : All but: UDP 80 y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 +y/b[Pod] => x/b[Pod] : All but: UDP 80 +y/b[Pod] => y/a[Pod] : All but: UDP 80 diff --git a/test_outputs/connlist/test1_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test1_anp_conn_from_parsed_res.txt index 2a4eb79e..81d469ad 100644 --- a/test_outputs/connlist/test1_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test1_anp_conn_from_parsed_res.txt @@ -3,7 +3,7 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +x/a[Pod] => x/b[Pod] : All but: TCP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test2_anp_banp_from_parsed_res.txt b/test_outputs/connlist/test2_anp_banp_from_parsed_res.txt index cfa1be1f..c2aa24f9 100644 --- a/test_outputs/connlist/test2_anp_banp_from_parsed_res.txt +++ b/test_outputs/connlist/test2_anp_banp_from_parsed_res.txt @@ -7,7 +7,7 @@ x/a[Pod] => x/b[Pod] : All Connections x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/b[Pod] => x/a[Pod] : All but: UDP 80 x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test2_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test2_anp_conn_from_parsed_res.txt index 326c6834..2936bc8a 100644 --- a/test_outputs/connlist/test2_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test2_anp_conn_from_parsed_res.txt @@ -7,7 +7,7 @@ x/a[Pod] => x/b[Pod] : All Connections x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +x/b[Pod] => x/a[Pod] : All but: TCP 80 x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test3_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test3_anp_conn_from_parsed_res.txt index 326c6834..2936bc8a 100644 --- a/test_outputs/connlist/test3_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test3_anp_conn_from_parsed_res.txt @@ -7,7 +7,7 @@ x/a[Pod] => x/b[Pod] : All Connections x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +x/b[Pod] => x/a[Pod] : All but: TCP 80 x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test4_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test4_anp_conn_from_parsed_res.txt index f4c1619a..876837ae 100644 --- a/test_outputs/connlist/test4_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test4_anp_conn_from_parsed_res.txt @@ -17,7 +17,7 @@ x/a[Pod] => z/a[Pod] : All Connections x/a[Pod] => z/b[Pod] : All Connections x/a[Pod] => z/c[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-65535 +x/b[Pod] => x/a[Pod] : All but: TCP 80-81 x/b[Pod] => x/c[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections @@ -26,7 +26,7 @@ x/b[Pod] => z/a[Pod] : All Connections x/b[Pod] => z/b[Pod] : All Connections x/b[Pod] => z/c[Pod] : All Connections x/c[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/c[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-65535 +x/c[Pod] => x/a[Pod] : All but: TCP 80-81 x/c[Pod] => x/b[Pod] : All Connections x/c[Pod] => y/a[Pod] : All Connections x/c[Pod] => y/b[Pod] : All Connections diff --git a/test_outputs/connlist/test4_anp_unmatched_ingress_egress_from_parsed_res.txt b/test_outputs/connlist/test4_anp_unmatched_ingress_egress_from_parsed_res.txt index 8e9a404a..7dda70b5 100644 --- a/test_outputs/connlist/test4_anp_unmatched_ingress_egress_from_parsed_res.txt +++ b/test_outputs/connlist/test4_anp_unmatched_ingress_egress_from_parsed_res.txt @@ -3,18 +3,18 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/a[Pod] => x/b[Pod] : All but: UDP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/b[Pod] => x/a[Pod] : All but: UDP 80 x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 +y/a[Pod] => x/b[Pod] : All but: UDP 80 y/a[Pod] => y/b[Pod] : All Connections y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 +y/b[Pod] => x/b[Pod] : All but: UDP 80 y/b[Pod] => y/a[Pod] : All Connections diff --git a/test_outputs/connlist/test5_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test5_anp_conn_from_parsed_res.txt index 5678834f..fe0ba383 100644 --- a/test_outputs/connlist/test5_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test5_anp_conn_from_parsed_res.txt @@ -11,10 +11,10 @@ x/b[Pod] => x/a[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 y/a[Pod] => x/b[Pod] : All Connections y/a[Pod] => y/b[Pod] : All Connections y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 y/b[Pod] => x/b[Pod] : All Connections y/b[Pod] => y/a[Pod] : All Connections diff --git a/test_outputs/connlist/test6_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test6_anp_conn_from_parsed_res.txt index 87af5c3a..66fb029f 100644 --- a/test_outputs/connlist/test6_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test6_anp_conn_from_parsed_res.txt @@ -15,6 +15,6 @@ y/a[Pod] => x/a[Pod] : All Connections y/a[Pod] => x/b[Pod] : All Connections y/a[Pod] => y/b[Pod] : All Connections y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 y/b[Pod] => x/b[Pod] : All Connections y/b[Pod] => y/a[Pod] : All Connections diff --git a/test_outputs/connlist/test6_anp_unmatched_ingress_egress_from_parsed_res.txt b/test_outputs/connlist/test6_anp_unmatched_ingress_egress_from_parsed_res.txt index e59de296..4e1bcadb 100644 --- a/test_outputs/connlist/test6_anp_unmatched_ingress_egress_from_parsed_res.txt +++ b/test_outputs/connlist/test6_anp_unmatched_ingress_egress_from_parsed_res.txt @@ -11,10 +11,10 @@ x/b[Pod] => x/a[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 +y/a[Pod] => x/b[Pod] : All but: UDP 80 +y/a[Pod] => y/b[Pod] : All but: UDP 80 y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 -y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 +y/b[Pod] => x/b[Pod] : All but: UDP 80 +y/b[Pod] => y/a[Pod] : All but: UDP 80 diff --git a/test_outputs/connlist/test7_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test7_anp_conn_from_parsed_res.txt index 5678834f..fe0ba383 100644 --- a/test_outputs/connlist/test7_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test7_anp_conn_from_parsed_res.txt @@ -11,10 +11,10 @@ x/b[Pod] => x/a[Pod] : All Connections x/b[Pod] => y/a[Pod] : All Connections x/b[Pod] => y/b[Pod] : All Connections y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/a[Pod] => x/a[Pod] : All but: UDP 80 y/a[Pod] => x/b[Pod] : All Connections y/a[Pod] => y/b[Pod] : All Connections y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +y/b[Pod] => x/a[Pod] : All but: UDP 80 y/b[Pod] => x/b[Pod] : All Connections y/b[Pod] => y/a[Pod] : All Connections diff --git a/test_outputs/connlist/test8_anp_conn_from_parsed_res.txt b/test_outputs/connlist/test8_anp_conn_from_parsed_res.txt index 1cde785d..551969d9 100644 --- a/test_outputs/connlist/test8_anp_conn_from_parsed_res.txt +++ b/test_outputs/connlist/test8_anp_conn_from_parsed_res.txt @@ -3,18 +3,18 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/a[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +x/a[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +x/a[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/a[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -x/b[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +x/b[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/b[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 +x/b[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +y/a[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +y/a[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +y/a[Pod] => y/b[Pod] : All but: TCP 80-81,UDP 80-81 y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections -y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 -y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535 +y/b[Pod] => x/a[Pod] : All but: TCP 80-81,UDP 80-81 +y/b[Pod] => x/b[Pod] : All but: TCP 80-81,UDP 80-81 +y/b[Pod] => y/a[Pod] : All but: TCP 80-81,UDP 80-81 diff --git a/test_outputs/connlist/test_anp_banp_deny_specific_ports_from_parsed_res.txt b/test_outputs/connlist/test_anp_banp_deny_specific_ports_from_parsed_res.txt index 79de08ae..15e2f5cf 100644 --- a/test_outputs/connlist/test_anp_banp_deny_specific_ports_from_parsed_res.txt +++ b/test_outputs/connlist/test_anp_banp_deny_specific_ports_from_parsed_res.txt @@ -3,7 +3,7 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-79,81-65535 +x/a[Pod] => x/b[Pod] : All but: TCP 80,UDP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test_anp_deny_specific_port_from_parsed_res.txt b/test_outputs/connlist/test_anp_deny_specific_port_from_parsed_res.txt index d5aea1a7..d50d3ec1 100644 --- a/test_outputs/connlist/test_anp_deny_specific_port_from_parsed_res.txt +++ b/test_outputs/connlist/test_anp_deny_specific_port_from_parsed_res.txt @@ -3,7 +3,7 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535 +x/a[Pod] => x/b[Pod] : All but: UDP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/test_banp_deny_specific_port_from_parsed_res.txt b/test_outputs/connlist/test_banp_deny_specific_port_from_parsed_res.txt index 2a4eb79e..81d469ad 100644 --- a/test_outputs/connlist/test_banp_deny_specific_port_from_parsed_res.txt +++ b/test_outputs/connlist/test_banp_deny_specific_port_from_parsed_res.txt @@ -3,7 +3,7 @@ 0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections 0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections -x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 +x/a[Pod] => x/b[Pod] : All but: TCP 80 x/a[Pod] => y/a[Pod] : All Connections x/a[Pod] => y/b[Pod] : All Connections x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot index c7fec222..dfe0bd3e 100644 --- a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot +++ b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot @@ -35,7 +35,7 @@ digraph { "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="UDP 53" color="red2" fontcolor="red2" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=0.5] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="grey" fontcolor="grey" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] diff --git a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.png b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.png index f27012c2..a84f1910 100644 Binary files a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.png and b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.svg b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.svg index 9d229d0e..ee20e03a 100644 --- a/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_10_swapping_rules_and_anp_test_10.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.csv b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.csv index 47028012..e9277b12 100644 --- a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.csv +++ b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.csv @@ -1,3 +1,3 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535",All Connections, +changed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: TCP 80,All Connections, removed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot index 4e2239e3..d53153fb 100644 --- a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot +++ b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="TCP 8080" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535)" color="magenta" fontcolor="magenta" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: All but: TCP 80)" color="magenta" fontcolor="magenta" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.png b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.png index d64f2cb8..48b8e05f 100644 Binary files a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.png and b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.svg b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.svg index 1a2b0c9c..61d0a2e4 100644 --- a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw - + cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -TCP 8080 + + +TCP 8080 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections (ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535) + + +All Connections (ref1: All but: TCP 80) 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.md b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.md index b1dd4bfd..21dd302b 100644 --- a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.md +++ b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.md @@ -1,4 +1,4 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | All Connections | | +| changed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: TCP 80 | All Connections | | | removed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.txt b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.txt index 5410240a..a5328660 100644 --- a/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.txt +++ b/test_outputs/diff/diff_between_anp_test_11_swapping_rules_and_anp_test_11.txt @@ -1,3 +1,3 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535, ref2: All Connections +diff-type: changed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: All but: TCP 80, ref2: All Connections diff-type: removed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.csv b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.csv index 3634810d..fc6982d3 100644 --- a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.csv +++ b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.csv @@ -1,3 +1,3 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535",All Connections, +changed,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],All but: SCTP 9003,All Connections, removed,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot index f548df69..53af637c 100644 --- a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot +++ b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot @@ -39,7 +39,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535)" color="magenta" fontcolor="magenta" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: All but: SCTP 9003)" color="magenta" fontcolor="magenta" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.png b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.png index 2d900e14..690b785d 100644 Binary files a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.png and b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.svg b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.svg index bdcce9b8..8bf9892d 100644 --- a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535) + + +All Connections (ref1: All but: SCTP 9003) network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.md b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.md index 066039d9..f922d701 100644 --- a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.md +++ b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.md @@ -1,4 +1,4 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | All Connections | | +| changed | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003 | All Connections | | | removed | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.txt b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.txt index b323b1e3..e04a3205 100644 --- a/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.txt +++ b/test_outputs/diff/diff_between_anp_test_12_swapping_rules_and_anp_test_12.txt @@ -1,3 +1,3 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535, ref2: All Connections +diff-type: changed, source: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: All but: SCTP 9003, ref2: All Connections diff-type: removed, source: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.csv b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.csv index 16545536..2c55889a 100644 --- a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.csv +++ b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.csv @@ -1,3 +1,3 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],"SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535","SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535", +changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All but: UDP 5353,All but: UDP 5000, removed,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],All Connections,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot index 64985109..667d4b55 100644 --- a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot +++ b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot @@ -42,7 +42,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535 (ref1: SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535)" color="magenta" fontcolor="magenta" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5000 (ref1: All but: UDP 5353)" color="magenta" fontcolor="magenta" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 subgraph cluster_legend { diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.png b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.png index d6fe84d8..492f0e5e 100644 Binary files a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.png and b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.svg b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.svg index 3cfc9947..afb78ea0 100644 --- a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535 (ref1: SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535) + + +All but: UDP 5000 (ref1: All but: UDP 5353) network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.md b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.md index eacbb10b..7a3c135a 100644 --- a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.md +++ b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.md @@ -1,4 +1,4 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 | SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535 | | +| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All but: UDP 5353 | All but: UDP 5000 | | | removed | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | All Connections | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.txt b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.txt index e9074c13..fbad0fa6 100644 --- a/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.txt +++ b/test_outputs/diff/diff_between_anp_test_6_swapping_rules_and_anp_test_6.txt @@ -1,3 +1,3 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet], ref1: SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535, ref2: SCTP 1-65535,TCP 1-65535,UDP 1-4999,5001-65535 +diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet], ref1: All but: UDP 5353, ref2: All but: UDP 5000 diff-type: removed, source: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], destination: network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.csv b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.csv index bef70653..56cda877 100644 --- a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.csv +++ b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.csv @@ -1,3 +1,3 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535",All Connections, +changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All but: TCP 80,All Connections, removed,network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],TCP 80,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot index e45c90e5..74ca42f9 100644 --- a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot +++ b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections (ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535)" color="magenta" fontcolor="magenta" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections (ref1: All but: TCP 80)" color="magenta" fontcolor="magenta" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.png b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.png index fb3f00e5..cd7c0877 100644 Binary files a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.png and b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.svg b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.svg index 5b12b176..891d4ee8 100644 --- a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -TCP 80 + + +TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections (ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535) + + +All Connections (ref1: All but: TCP 80) network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.md b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.md index 27881d34..fdebc071 100644 --- a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.md +++ b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.md @@ -1,4 +1,4 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 | All Connections | | +| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: TCP 80 | All Connections | | | removed | network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | TCP 80 | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.txt b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.txt index cf6db559..786e3e6e 100644 --- a/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.txt +++ b/test_outputs/diff/diff_between_anp_test_7_swapping_rules_and_anp_test_7.txt @@ -1,3 +1,3 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535, ref2: All Connections +diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: All but: TCP 80, ref2: All Connections diff-type: removed, source: network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: TCP 80, ref2: No Connections diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.csv b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.csv index 37cb990d..180cba4c 100644 --- a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.csv +++ b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.csv @@ -1,3 +1,3 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535",All Connections, +changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All but: SCTP 9003,All Connections, removed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot index 3ce4689f..fb671c2c 100644 --- a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot +++ b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot @@ -43,7 +43,7 @@ digraph { "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535)" color="magenta" fontcolor="magenta" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections (ref1: All but: SCTP 9003)" color="magenta" fontcolor="magenta" weight=1] nodesep=0.5 subgraph cluster_legend { label="Legend" diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.png b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.png index 5570ff66..f546802f 100644 Binary files a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.png and b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.svg b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.svg index ab0d171d..56ab2be0 100644 --- a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535) + + +All Connections (ref1: All but: SCTP 9003) network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.md b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.md index 0c91dd28..ae8f7828 100644 --- a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.md +++ b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.md @@ -1,4 +1,4 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 | All Connections | | +| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All but: SCTP 9003 | All Connections | | | removed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.txt b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.txt index cb2b9630..ef99149c 100644 --- a/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.txt +++ b/test_outputs/diff/diff_between_anp_test_8_swapping_rules_and_anp_test_8.txt @@ -1,3 +1,3 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], ref1: SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535, ref2: All Connections +diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], ref1: All but: SCTP 9003, ref2: All Connections diff-type: removed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.csv b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.csv index 995241ec..3114f0c2 100644 --- a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.csv +++ b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.csv @@ -1,5 +1,5 @@ diff-type,source,destination,ref1,ref2,workloads-diff-info -changed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535",All Connections, -changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535",All Connections, +changed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-slytherin/draco-malfoy[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53",All Connections, +changed,network-policy-conformance-slytherin/draco-malfoy[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],"All but: SCTP 9003,TCP 80,UDP 53",All Connections, removed,network-policy-conformance-gryffindor/harry-potter[StatefulSet],network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],All Connections,No Connections, removed,network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet],network-policy-conformance-gryffindor/harry-potter[StatefulSet],All Connections,No Connections, diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot index 956f609a..c0881611 100644 --- a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot +++ b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535)" color="magenta" fontcolor="magenta" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections (ref1: All but: SCTP 9003,TCP 80,UDP 53)" color="magenta" fontcolor="magenta" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535)" color="magenta" fontcolor="magenta" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections (ref1: All but: SCTP 9003,TCP 80,UDP 53)" color="magenta" fontcolor="magenta" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.png b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.png index 4b1edfc1..751c21f2 100644 Binary files a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.png and b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.png differ diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.svg b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.svg index 2ff51b2a..3833ce5f 100644 --- a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.svg +++ b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.dot.svg @@ -4,259 +4,259 @@ - + - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor cluster_legend - -Legend + +Legend + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003,TCP 8080,UDP 5353 + + +SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535) + + +All Connections (ref1: All but: SCTP 9003,TCP 80,UDP 53) 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 9003,TCP 80,UDP 5353 + + +SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections (ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535) + + +All Connections (ref1: All but: SCTP 9003,TCP 80,UDP 53) network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.md b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.md index 0f3edce7..b84feaf3 100644 --- a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.md +++ b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.md @@ -1,6 +1,6 @@ | diff-type | source | destination | ref1 | ref2 | workloads-diff-info | |-----------|--------|-------------|------|------|---------------------| -| changed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | All Connections | | -| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 | All Connections | | +| changed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | All Connections | | +| changed | network-policy-conformance-slytherin/draco-malfoy[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All but: SCTP 9003,TCP 80,UDP 53 | All Connections | | | removed | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | All Connections | No Connections | | | removed | network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] | network-policy-conformance-gryffindor/harry-potter[StatefulSet] | All Connections | No Connections | | \ No newline at end of file diff --git a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.txt b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.txt index 2c5d6720..6bfad220 100644 --- a/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.txt +++ b/test_outputs/diff/diff_between_anp_test_9_swapping_rules_and_anp_test_9.txt @@ -1,5 +1,5 @@ Connectivity diff: -diff-type: changed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535, ref2: All Connections -diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535, ref2: All Connections +diff-type: changed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], ref1: All but: SCTP 9003,TCP 80,UDP 53, ref2: All Connections +diff-type: changed, source: network-policy-conformance-slytherin/draco-malfoy[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: All but: SCTP 9003,TCP 80,UDP 53, ref2: All Connections diff-type: removed, source: network-policy-conformance-gryffindor/harry-potter[StatefulSet], destination: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], ref1: All Connections, ref2: No Connections diff-type: removed, source: network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet], destination: network-policy-conformance-gryffindor/harry-potter[StatefulSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot index b62c6d5e..d56a1c03 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot @@ -39,7 +39,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="grey" fontcolor="grey" weight=0.5] + "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.png index 7d2b55a9..86eb009b 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.svg index 6c5619a0..bbd18d3d 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_egress_sctp_swapping_rules_and_banp_test_core_egress_sctp_rules.dot.svg @@ -4,259 +4,259 @@ - + - + cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_ravenclaw + +network-policy-conformance-ravenclaw cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - - -cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-hufflepuff cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot index 90a41937..b736ae5b 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="TCP 8080" color="red2" fontcolor="red2" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="grey" fontcolor="grey" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: TCP 80" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.png index 449bdff3..384e16db 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.svg index cab466bf..8614452c 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_egress_tcp_swapping_rules_and_banp_test_core_egress_tcp_rules.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -TCP 8080 + + +TCP 8080 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot index 99970bf3..b22b3ab2 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot @@ -35,7 +35,7 @@ digraph { "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="UDP 53" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=0.5] - "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="grey" fontcolor="grey" weight=0.5] + "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: UDP 5353" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.png index 083ef073..43d5dc90 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.svg index da0ee783..c6ee35b2 100644 --- a/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_egress_udp_swapping_rules_and_banp_test_core_egress_udp_rules.dot.svg @@ -4,259 +4,259 @@ - + - + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_legend - -Legend - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot index 971d0028..8b564383 100644 --- a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot @@ -31,7 +31,7 @@ digraph { "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 9003,TCP 8080,UDP 5353" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="red2" fontcolor="red2" weight=0.5] - "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="grey" fontcolor="grey" weight=0.5] + "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 9003,TCP 80,UDP 5353" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535" color="grey" fontcolor="grey" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: SCTP 9003,TCP 80,UDP 53" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 diff --git a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.png index b4eea418..80fb86d3 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.svg index 88720d68..cde38202 100644 --- a/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_gress_swapping_rules_and_banp_test_core_gress_rules.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin + +network-policy-conformance-slytherin cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 9003,TCP 8080,UDP 5353 + + +SCTP 9003,TCP 8080,UDP 5353 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 9003,TCP 80,UDP 5353 + + +SCTP 9003,TCP 80,UDP 5353 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-79,81-65535,UDP 1-52,54-65535 + + +All but: SCTP 9003,TCP 80,UDP 53 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot index b5bf32b0..8699a65f 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot @@ -43,7 +43,7 @@ digraph { "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535" color="grey" fontcolor="grey" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All but: SCTP 9003" color="grey" fontcolor="grey" weight=1] nodesep=0.5 subgraph cluster_legend { label="Legend" diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.png index 37dca119..faf96aa1 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.svg index ead410b4..2b9fb6da 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_sctp_swapping_rules_and_banp_test_core_ingress_sctp_rules.dot.svg @@ -4,259 +4,259 @@ - + - + cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-slytherin cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 9003 + + +SCTP 9003 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -SCTP 1-9002,9004-65535,TCP 1-65535,UDP 1-65535 + + +All but: SCTP 9003 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot index 998f662a..049b0bb6 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot @@ -41,7 +41,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535" color="grey" fontcolor="grey" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All but: TCP 80" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.png index d50a236d..3aa7f8c2 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.svg index c5c887b4..bb35fe0e 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_tcp_swapping_rules_and_banp_test_core_ingress_tcp_rules.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - - -cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff - + cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor + +network-policy-conformance-gryffindor + + +cluster_network_policy_conformance_hufflepuff + +network-policy-conformance-hufflepuff cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -TCP 80 + + +TCP 80 network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535 + + +All but: TCP 80 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot index 2eef4d61..eb87a2e0 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot @@ -42,7 +42,7 @@ digraph { "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" -> "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=0.5] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "0.0.0.0-255.255.255.255" [label="All Connections" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-gryffindor/harry-potter[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] - "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535" color="grey" fontcolor="grey" weight=1] + "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]" [label="All but: UDP 5353" color="grey" fontcolor="grey" weight=1] "network-policy-conformance-slytherin/draco-malfoy[StatefulSet]" -> "network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]" [label="All Connections" color="grey" fontcolor="grey" weight=1] nodesep=0.5 subgraph cluster_legend { diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.png b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.png index 1c6c9836..631625f8 100644 Binary files a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.png and b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.png differ diff --git a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.svg b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.svg index 67816562..d1b84799 100644 --- a/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.svg +++ b/test_outputs/diff/diff_between_banp_test_core_ingress_udp_swapping_rules_and_banp_test_core_ingress_udp_rules.dot.svg @@ -4,259 +4,259 @@ - + - - -cluster_network_policy_conformance_gryffindor - -network-policy-conformance-gryffindor - - -cluster_network_policy_conformance_slytherin - -network-policy-conformance-slytherin - + cluster_network_policy_conformance_hufflepuff - -network-policy-conformance-hufflepuff + +network-policy-conformance-hufflepuff cluster_network_policy_conformance_ravenclaw - -network-policy-conformance-ravenclaw + +network-policy-conformance-ravenclaw + + +cluster_network_policy_conformance_slytherin + +network-policy-conformance-slytherin + + +cluster_network_policy_conformance_gryffindor + +network-policy-conformance-gryffindor cluster_legend - -Legend + +Legend network-policy-conformance-gryffindor/harry-potter[StatefulSet] - -harry-potter[StatefulSet] + +harry-potter[StatefulSet] network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - -cedric-diggory[StatefulSet] + +cedric-diggory[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -UDP 53 + + +UDP 53 network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - -luna-lovegood[StatefulSet] + +luna-lovegood[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - -draco-malfoy[StatefulSet] + +draco-malfoy[StatefulSet] network-policy-conformance-gryffindor/harry-potter[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255 - -0.0.0.0-255.255.255.255 + +0.0.0.0-255.255.255.255 network-policy-conformance-gryffindor/harry-potter[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -SCTP 1-65535,TCP 1-65535,UDP 1-5352,5354-65535 + + +All but: UDP 5353 network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections network-policy-conformance-slytherin/draco-malfoy[StatefulSet]->0.0.0.0-255.255.255.255 - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-gryffindor/harry-potter[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-hufflepuff/cedric-diggory[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-ravenclaw/luna-lovegood[StatefulSet] - - -All Connections + + +All Connections 0.0.0.0-255.255.255.255->network-policy-conformance-slytherin/draco-malfoy[StatefulSet] - - -All Connections + + +All Connections a->b - - -added connection + + +added connection c->d - - -removed connection + + +removed connection e->f - - -changed connection + + +changed connection g->h - - -unchanged connection + + +unchanged connection np - -new peer + +new peer lp - -lost peer + +lost peer pp - -persistent peer + +persistent peer