portainer/app/docker/networks/network.helper.ts

6 lines
174 B
TypeScript

const systemNetworks = ['host', 'bridge', 'ingress', 'nat', 'none'];
export function isSystemNetwork(networkName: string) {
return systemNetworks.includes(networkName);
}