MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / normalize_rule

Function normalize_rule

crates/openshell-policy/src/merge.rs:799–804  ·  view source on GitHub ↗
(rule: &mut NetworkPolicyRule)

Source from the content-addressed store, hash-verified

797}
798
799fn normalize_rule(rule: &mut NetworkPolicyRule) {
800 for endpoint in &mut rule.endpoints {
801 normalize_endpoint(endpoint);
802 }
803 dedup_binaries(&mut rule.binaries);
804}
805
806fn normalize_endpoint(endpoint: &mut NetworkEndpoint) {
807 let mut ports = canonical_ports(endpoint);

Callers 1

add_ruleFunction · 0.85

Calls 2

normalize_endpointFunction · 0.85
dedup_binariesFunction · 0.85

Tested by

no test coverage detected