Fix check required attributes for network policy